morss/docker-entry.sh
pictuga 5422d4e14c
Some checks failed
continuous-integration/drone/push Build is failing
Move away from gevent
Might not be that reliable
2021-11-25 21:21:59 +01:00

13 lines
253 B
Bash
Executable File

#! /bin/sh
if [ "$1" = "sh" ] || [ "$1" = "bash" ]; then
exec $@
elif [ -z "$1" ] || [ "$@" = "run" ]; then
gunicorn --bind 0.0.0.0:${PORT:-8000} --workers ${WORKERS:-4} --threads ${THREADS:-4} --preload --access-logfile - morss
else
morss $@
fi