diff --git a/config.js.template b/config.js.template index 64157ba..5bfb8a9 100644 --- a/config.js.template +++ b/config.js.template @@ -1,4 +1,4 @@ window._env_ = { - API_URL: "", - API_OFFICE_URL: "", + API_URL: "${API_URL}", + API_OFFICE_URL: "${API_OFFICE_URL}" }; diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 800ed91..a945727 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,4 +1,7 @@ #!/bin/bash set -e +echo "API_URL: $API_URL" +echo "API_OFFICE_URL: $API_OFFICE_URL" envsubst '${API_URL} ${API_OFFICE_URL}' < /var/www/public/config.js.template > /var/www/public/config.js +cat /var/www/public/config.js exec "$@"