docker-entrypoint: overwrite ./config/local-production.cjs to let the user free of overwriting those variables in local.cjs (aka the autority file)
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# Overwrite the local config with environment variables every time the container is restarted
|
# Overwrite the local-production config with environment variables every time the container is restarted
|
||||||
cat > ./config/local.cjs << EOF
|
cat > ./config/local-production.cjs << EOF
|
||||||
module.exports = {
|
module.exports = {
|
||||||
port: '${INVENTAIRE_PORT}',
|
port: '${INVENTAIRE_PORT}',
|
||||||
publicHostname: '${PUBLIC_HOSTNAME}',
|
publicHostname: '${PUBLIC_HOSTNAME}',
|
||||||
|
|||||||
Reference in New Issue
Block a user