gunicorn: broader customization
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
eb47aac6f1
commit
440f7d6797
|
@ -122,7 +122,7 @@ write_files:
|
||||||
runcmd:
|
runcmd:
|
||||||
- update-ca-certificates
|
- update-ca-certificates
|
||||||
- pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full]
|
- pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full]
|
||||||
- gunicorn --bind 0.0.0.0:${PORT:-8000} --workers ${WORKERS:-4} --threads ${THREADS:-4} --preload --access-logfile - morss
|
- gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
|
@ -390,8 +390,6 @@ debugging.
|
||||||
- `IGNORE_SSL=1`: to ignore SSL certs when fetch feeds and articles
|
- `IGNORE_SSL=1`: to ignore SSL certs when fetch feeds and articles
|
||||||
- `DELAY` (seconds) sets the browser cache delay, only for HTTP clients
|
- `DELAY` (seconds) sets the browser cache delay, only for HTTP clients
|
||||||
- `TIMEOUT` (seconds) sets the HTTP timeout when fetching rss feeds and articles
|
- `TIMEOUT` (seconds) sets the HTTP timeout when fetching rss feeds and articles
|
||||||
- `WORKERS` and `THREADS` (number) sets the number of gunicorn workers and
|
|
||||||
threads to use
|
|
||||||
|
|
||||||
When parsing long feeds, with a lot of items (100+), morss might take a lot of
|
When parsing long feeds, with a lot of items (100+), morss might take a lot of
|
||||||
time to parse it, or might even run into a memory overflow on some shared
|
time to parse it, or might even run into a memory overflow on some shared
|
||||||
|
|
|
@ -4,7 +4,7 @@ if [ "$1" = "sh" ] || [ "$1" = "bash" ]; then
|
||||||
exec $@
|
exec $@
|
||||||
|
|
||||||
elif [ -z "$1" ] || [ "$@" = "run" ]; then
|
elif [ -z "$1" ] || [ "$@" = "run" ]; then
|
||||||
gunicorn --bind 0.0.0.0:${PORT:-8000} --workers ${WORKERS:-4} --threads ${THREADS:-4} --preload --access-logfile - morss
|
gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss
|
||||||
|
|
||||||
else
|
else
|
||||||
morss $@
|
morss $@
|
||||||
|
|
Loading…
Reference in New Issue