From 10e33f919e6625ffced130231c1d412899d67b1b Mon Sep 17 00:00:00 2001 From: maxlath Date: Thu, 27 Feb 2025 11:47:36 +0100 Subject: [PATCH] inventaire: docker-entrypoint.sh: adapt the edited local config file to the used NODE_ENV Everything is this docker-compose.yml is done with NODE_ENV=production in mind, but if someone wants to play with other environments, that should now work too --- inventaire/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}',