Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ docker run \
CodeCompass_webserver -w /workspace
```

If you want to edit the public URL of the web GUI, you can do this by appending the
`-e APP_BASE_PATH=/YOUR_PATH` command option to the previous run command.
Leaving this out of the command will start the web interface with no set path.
The new GUI will still be accessible in the /new path appended to the end of your URL.

# Official DockerHub images

Prebuilt images can be downloaded from DockerHub, from the
Expand Down
3 changes: 2 additions & 1 deletion docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ EXPOSE 8080

ENTRYPOINT ["tini", "--", "/usr/local/bin/entrypoint.sh"]

CMD ["CodeCompass_webserver", "-w", "/workspace", "-p", "8080"]
CMD ["sh", "-c", "node ../../webgui-new/scripts/patch-basepath.js && CodeCompass_webserver -w /workspace -p 8080"]

Empty file modified plugins/search/lib/java/lucene-memory-4.9.0.jar
100755 → 100644
Empty file.
Empty file modified scripts/CodeCompass_logger
100755 → 100644
Empty file.
Empty file modified scripts/install_latest_build2.sh
100755 → 100644
Empty file.
Empty file modified scripts/remover.sh
100755 → 100644
Empty file.
6 changes: 4 additions & 2 deletions webgui-new/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require('dotenv').config();

const BASE_PLACEHOLDER = '/__URL_BASE_PATH__';

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
Expand All @@ -13,8 +15,8 @@ const nextConfig = {
},
trailingSlash: true,
...(process.env.NODE_ENV === 'production' && {
assetPrefix: `${process.env.PUBLIC_URL || ''}/new`,
basePath: `${process.env.PUBLIC_URL || ''}/new`,
assetPrefix: `${process.env.PUBLIC_URL || ''}${BASE_PLACEHOLDER}`,
basePath: `${process.env.PUBLIC_URL || ''}${BASE_PLACEHOLDER}`,
}),
};

Expand Down
Loading