Use $PORT env variable

This commit is contained in:
R. Miles McCain 2020-05-28 21:40:43 +00:00
parent d895eac14d
commit 1bb4aac32f
No known key found for this signature in database
GPG Key ID: F1053629E2905557
3 changed files with 4 additions and 11 deletions

View File

@ -47,15 +47,8 @@ ONLY_SUPERUSERS_CREATE=True
# Will skip only if value is False.
PERFORM_CHECKS_AND_SETUP=True
# Your admin user's email. A temporary password will be printed
# to the console on first run.
SHYNET_ADMIN_EMAIL=you@example.com
# The domain on which you'll be hosting Shynet.
SHYNET_HOST=shynet.example.com
# What you'd like to call your Shynet instance.
SHYNET_WHITELABEL=My Shynet Instance
# The port that Shynet should bind to. Don't set this if you're deploying on Heroku.
PORT=8080
# Redis, queue, and parellization settings; not necessary for single-instance deployments.
# Don't uncomment these unless you know what you are doing!

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