Use $PORT env variable
This commit is contained in:
parent
d895eac14d
commit
1bb4aac32f
11
TEMPLATE.env
11
TEMPLATE.env
@ -47,15 +47,8 @@ ONLY_SUPERUSERS_CREATE=True
|
|||||||
# Will skip only if value is False.
|
# Will skip only if value is False.
|
||||||
PERFORM_CHECKS_AND_SETUP=True
|
PERFORM_CHECKS_AND_SETUP=True
|
||||||
|
|
||||||
# Your admin user's email. A temporary password will be printed
|
# The port that Shynet should bind to. Don't set this if you're deploying on Heroku.
|
||||||
# to the console on first run.
|
PORT=8080
|
||||||
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
|
|
||||||
|
|
||||||
# Redis, queue, and parellization settings; not necessary for single-instance deployments.
|
# Redis, queue, and parellization settings; not necessary for single-instance deployments.
|
||||||
# Don't uncomment these unless you know what you are doing!
|
# Don't uncomment these unless you know what you are doing!
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Start Gunicorn processes
|
# Start Gunicorn processes
|
||||||
echo Launching Shynet web server...
|
echo Launching Shynet web server...
|
||||||
exec gunicorn shynet.wsgi:application \
|
exec gunicorn shynet.wsgi:application \
|
||||||
--bind 0.0.0.0:8080 \
|
--bind 0.0.0.0:${PORT:-8080} \
|
||||||
--workers ${NUM_WORKERS:-1} \
|
--workers ${NUM_WORKERS:-1} \
|
||||||
--timeout 100 \
|
--timeout 100 \
|
||||||
--certfile=cert.pem \
|
--certfile=cert.pem \
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
# Start Gunicorn processes
|
# Start Gunicorn processes
|
||||||
echo Launching Shynet web server...
|
echo Launching Shynet web server...
|
||||||
exec gunicorn shynet.wsgi:application \
|
exec gunicorn shynet.wsgi:application \
|
||||||
--bind 0.0.0.0:8080 \
|
--bind 0.0.0.0:${PORT:-8080} \
|
||||||
--workers ${NUM_WORKERS:-1} \
|
--workers ${NUM_WORKERS:-1} \
|
||||||
--timeout 100
|
--timeout 100
|
||||||
|
Loading…
Reference in New Issue
Block a user