Skip to content

Commit

Permalink
bug-1862187: Switch Eliot to use PORT for gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
relud committed Dec 20, 2023
1 parent 11aee08 commit 82bcae0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/run_eliot_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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}" \
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Gunicorn configuration:
<https://github.com/mozilla-services/eliot/blob/main/bin/run_eliot_web.sh>`_.


.. everett:option:: ELIOT_GUNICORN_PORT
.. everett:option:: PORT
:default: "8000"

Specifies the port to listen to.
Expand Down

0 comments on commit 82bcae0

Please sign in to comment.