WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Configurable PUBLIC_URL with docker images #612

@mcserep

Description

@mcserep

On the https://codecompass.net website we use the /demo/ path prefix to serve a staging instance of the CodeCompass webserver. On the server itself, CodeCompass is executed in Docker containers, where the new frontend is built in the docker images with the PUBLIC_URL environment set to empty string. Therefore all static resources (JS files, images, etc.) are loaded from https://codecompass.net/new/, instead of https://codecompass.net/demo/new/, resulting in 404 errors.
(Currently it only works because some manual fixing was done.)

Since we are talking about Docker images, it would be nice not to hard code the path into it like that. Can we make it a little more dynamic, configurable at runtime?

Metadata

Metadata

Type

No type

Projects

Status

To do

Relationships

None yet

Development

No branches or pull requests

Issue actions