mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
misc: Remove support for deprecated GUNICORN_WORKERS variable
The `GUNICORN_WORKERS` environment variable has been deprecated in favor of `WEB_CONCURRENCY`.
This commit is contained in:
@@ -83,12 +83,6 @@ start_bin_gunicorn() {
|
||||
# commands to start our main application and store its PID to check for crashes
|
||||
info_log "Starting backend"
|
||||
|
||||
# TODO: Remove support for GUNICORN_WORKERS in future version.
|
||||
if [[ -n ${GUNICORN_WORKERS-} ]]; then
|
||||
warn_log "GUNICORN_WORKERS variable is deprecated, use WEB_CONCURRENCY instead"
|
||||
: "${WEB_CONCURRENCY:=${GUNICORN_WORKERS}}"
|
||||
fi
|
||||
|
||||
gunicorn \
|
||||
--bind=0.0.0.0:5000 \
|
||||
--bind=unix:/tmp/gunicorn.sock \
|
||||
|
||||
Reference in New Issue
Block a user