diff --git a/README.md b/README.md index cebc049..d561dc3 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ write_files: runcmd: - update-ca-certificates - pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full] - - gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss + - gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss ``` ## Run diff --git a/app.json b/app.json index 94fe0ba..9c93f3c 100644 --- a/app.json +++ b/app.json @@ -5,8 +5,8 @@ "value": 1, "required": false }, - "WORKERS": { - "value": 4, + "GUNICORN": { + "value": "", "required": false }, "CACHE": { diff --git a/docker-entry.sh b/docker-entry.sh index f4ddaf2..36f96d3 100755 --- a/docker-entry.sh +++ b/docker-entry.sh @@ -4,7 +4,7 @@ if [ "$1" = "sh" ] || [ "$1" = "bash" ]; then exec $@ elif [ -z "$1" ] || [ "$@" = "run" ]; then - gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss + gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss else morss $@