Remove default settings for gunicorn

master
pictuga 2021-11-26 07:27:05 +01:00
parent 440f7d6797
commit 72024f2864
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -5,8 +5,8 @@
"value": 1,
"required": false
},
"WORKERS": {
"value": 4,
"GUNICORN": {
"value": "",
"required": false
},
"CACHE": {

View File

@ -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 $@