diff --git a/inventaire/docker-entrypoint.sh b/inventaire/docker-entrypoint.sh index f36f044..897f062 100755 --- a/inventaire/docker-entrypoint.sh +++ b/inventaire/docker-entrypoint.sh @@ -2,8 +2,8 @@ set -eu -# Overwrite the local-production config with environment variables every time the container is restarted -cat > ./config/local-production.cjs << EOF +# Overwrite the local-${NODE_ENV} config with environment variables every time the container is restarted +cat > "./config/local-${NODE_ENV}.cjs" << EOF module.exports = { port: '${INVENTAIRE_PORT}', publicHostname: '${PUBLIC_HOSTNAME}',