Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 534c6da

Browse files
committed
run.sh: Add '$GUNICORN_OPTS "$@"' to gunicorn invocation
This allows users to add custom arguments via the command line ($@) or environment ($GUNICORN_OPTS), which is useful if you want to --preload (or tweak some other setting) without editing your config file.
1 parent 32cfe63 commit 534c6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ GUNICORN_GRACEFUL_TIMEOUT=${GUNICORN_GRACEFUL_TIMEOUT:-3600}
66
GUNICORN_SILENT_TIMEOUT=${GUNICORN_SILENT_TIMEOUT:-3600}
77

88
cd "$(dirname $0)"
9-
exec gunicorn --access-logfile - --max-requests 100 --graceful-timeout $GUNICORN_GRACEFUL_TIMEOUT -t $GUNICORN_SILENT_TIMEOUT -k gevent -b 0.0.0.0:$REGISTRY_PORT -w $GUNICORN_WORKERS wsgi:application
9+
exec gunicorn --access-logfile - --max-requests 100 --graceful-timeout $GUNICORN_GRACEFUL_TIMEOUT -t $GUNICORN_SILENT_TIMEOUT -k gevent -b 0.0.0.0:$REGISTRY_PORT -w $GUNICORN_WORKERS $GUNICORN_OPTS "$@" wsgi:application

0 commit comments

Comments
 (0)