Use $PORT env variable

This commit is contained in:
R. Miles McCain
2020-05-28 21:40:43 +00:00
parent d895eac14d
commit 1bb4aac32f
3 changed files with 4 additions and 11 deletions

View File

@@ -3,7 +3,7 @@
# Start Gunicorn processes
echo Launching Shynet web server...
exec gunicorn shynet.wsgi:application \
--bind 0.0.0.0:8080 \
--bind 0.0.0.0:${PORT:-8080} \
--workers ${NUM_WORKERS:-1} \
--timeout 100 \
--certfile=cert.pem \

View File

@@ -2,6 +2,6 @@
# Start Gunicorn processes
echo Launching Shynet web server...
exec gunicorn shynet.wsgi:application \
--bind 0.0.0.0:8080 \
--bind 0.0.0.0:${PORT:-8080} \
--workers ${NUM_WORKERS:-1} \
--timeout 100