diff --git a/README.md b/README.md index 0f827af..84b724a 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ write_files: permissions: 744 content: | #!/bin/sh - gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - --daemon morss + gunicorn --bind 0.0.0.0:${PORT:-8000} --preload --access-logfile - --daemon morss runcmd: - update-ca-certificates @@ -491,6 +491,9 @@ entries. NB. When using `diskcache`, this is the cache max size in Bytes. - `CACHE_LIFESPAN` (seconds) sets how often the cache must be trimmed (i.e. cut down to the number of items set in `CACHE_SIZE`). Defaults to 1min. +Gunicorn also accepts command line arguments via the `GUNICORN_CMD_ARGS` +environment variable. + ### Content matching The content of articles is grabbed with our own readability fork. This means diff --git a/app.json b/app.json index 9c93f3c..46e587e 100644 --- a/app.json +++ b/app.json @@ -5,7 +5,7 @@ "value": 1, "required": false }, - "GUNICORN": { + "GUNICORN_CMD_ARGS": { "value": "", "required": false }, diff --git a/docker-entry.sh b/docker-entry.sh old mode 100755 new mode 100644 index 36f96d3..666d80b --- 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} --preload --access-logfile - morss + gunicorn --bind 0.0.0.0:${PORT:-8000} --preload --access-logfile - morss else morss $@