Skip to content

Commit

Permalink
fix: nginx deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Jan 30, 2024
1 parent 4f31d37 commit 795b39e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions heroku.yml

This file was deleted.

8 changes: 4 additions & 4 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM nginx:stable
ENV PORT=80

ENV BACKEND=http://127.0.0.1:3000
ENV FRONTEND=http://frontend:3000
ENV WUNDERGRAPH=http://wundergraph:3002
ENV BACKEND=https://ph-switchboard-api-prod-2f0358a27fa5.herokuapp.com
ENV FRONTEND=https://ph-switchboard-api-prod-2f0358a27fa5.herokuapp.com
ENV WUNDERGRAPH=https://ph-switchboard-api-prod-2f0358a27fa5.herokuapp.com

COPY nginx.conf /etc/nginx/conf.d/default.conf.template
CMD /bin/sh -c "envsubst '\$PORT,\$BACKEND,\$FRONTEND,\$WUNDERGRAPH' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf" && nginx -g 'daemon off;'
CMD /bin/sh -c "envsubst '$PORT,$BACKEND,$FRONTEND,$WUNDERGRAPH' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf" && nginx -g 'daemon off;'

0 comments on commit 795b39e

Please sign in to comment.