Skip to content

Commit

Permalink
feat: listen to connections on ipv4/v6 (#395)
Browse files Browse the repository at this point in the history
* feat: listen to connections on ipv4/v6

* fix: ipv4/v6 bind

* feat: use dual stack networking on frontend
  • Loading branch information
nimish-ks authored Nov 24, 2024
1 parent f8846e3 commit cf2db1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH

EXPOSE 8000
CMD ["sh", "-c", "python manage.py migrate && gunicorn --bind :8000 --workers 3 backend.wsgi:application"]
CMD ["sh", "-c", "python manage.py migrate && gunicorn -b '[::]:8000' --workers 3 backend.wsgi:application"]
3 changes: 2 additions & 1 deletion frontend/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

# Set up runtime env vars and start next server
bash scripts/replace-variable.sh &&
NODE_ENV=production HOST=0.0.0.0 HOSTNAME=0.0.0.0 PORT=3000 node server.js
NODE_ENV=production HOSTNAME=:: PORT=3000 node server.js

0 comments on commit cf2db1b

Please sign in to comment.