Compare commits
No commits in common. "1837eda25fea3fcc7bf855bd4b4feb6c3b13f947" and "92a28be0b0c001a0d0c96126a8730194f8eae4c0" have entirely different histories.
1837eda25f
...
92a28be0b0
|
@ -125,7 +125,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} --worker-class=gevent --preload --access-logfile - morss
|
- gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
|
@ -393,7 +393,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` (number) sets the number of gunicorn workers 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
|
||||||
|
|
22
app.json
22
app.json
|
@ -1,21 +1 @@
|
||||||
{
|
{"stack": "container"}
|
||||||
"stack": "container",
|
|
||||||
"env": {
|
|
||||||
"DEBUG": {
|
|
||||||
"value": 1,
|
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
"WORKERS": {
|
|
||||||
"value": 4,
|
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
"CACHE": {
|
|
||||||
"value": "diskcache",
|
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
"CACHE_SIZE": {
|
|
||||||
"value": 1073741824,
|
|
||||||
"required": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -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} --worker-class=gevent --preload --access-logfile - morss
|
gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss
|
||||||
|
|
||||||
else
|
else
|
||||||
morss $@
|
morss $@
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
setup:
|
||||||
|
config:
|
||||||
|
DEBUG: 1
|
||||||
|
CACHE: diskcache
|
||||||
|
CACHE_SIZE: 1073741824
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
web: Dockerfile
|
web: Dockerfile
|
||||||
|
|
Loading…
Reference in New Issue