diff --git a/bin/run_eliot_web.sh b/bin/run_eliot_web.sh index 0c0da8eb..e3ce269f 100755 --- a/bin/run_eliot_web.sh +++ b/bin/run_eliot_web.sh @@ -5,7 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # default variables -: "${ELIOT_GUNICORN_PORT:=8000}" +: "${PORT:=8000}" : "${ELIOT_GUNICORN_WORKERS:=1}" : "${ELIOT_GUNICORN_TIMEOUT:=300}" : "${ELIOT_GUNICORN_MAX_REQUESTS:=0}" @@ -16,7 +16,7 @@ cd /app/ gunicorn \ - --bind 0.0.0.0:"${ELIOT_GUNICORN_PORT}" \ + --bind 0.0.0.0:"${PORT}" \ --timeout "${ELIOT_GUNICORN_TIMEOUT}" \ --workers "${ELIOT_GUNICORN_WORKERS}" \ --max-requests="${ELIOT_GUNICORN_MAX_REQUESTS}" \ diff --git a/docs/configuration.rst b/docs/configuration.rst index d1324811..5f5ec14e 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -41,7 +41,7 @@ Gunicorn configuration: `_. -.. everett:option:: ELIOT_GUNICORN_PORT +.. everett:option:: PORT :default: "8000" Specifies the port to listen to.