Skip to content

Commit

Permalink
fix(frontend): inject gateway host into static
Browse files Browse the repository at this point in the history
DEBUG=0 was broken because gateway host was injected into the source
instead of the static assets which are built
  • Loading branch information
jesseylin committed Jul 27, 2023
1 parent 359a035 commit 68d354c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/base/FrontEndApp/bash/custom-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ injectenv() {

# note: please be in the right workdir before doing this
if [ $DEBUG -eq 0 ]; then
injectenv "./src/assets/env.js" ${GATEWAY_HOST}
injectenv "/usr/share/nginx/www/angular_app/assets/env.js" ${GATEWAY_HOST}
echo "custom_entrypoint.sh: Injected GATEWAY_HOST=${GATEWAY_HOST}"
# serve static web app
/docker-entrypoint.sh nginx -g "daemon off;"
else
Expand Down

0 comments on commit 68d354c

Please sign in to comment.