1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-02 20:15:24 +02:00

chore: remove gunicorn in favor of uvicorn workers (#3761)

This commit is contained in:
Hayden 2024-06-20 22:52:09 -05:00 committed by GitHub
parent adab596683
commit 4d1381c055
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 44 additions and 160 deletions

View file

@ -37,14 +37,8 @@ init() {
change_user
init
GUNICORN_PORT=${API_PORT:-9000}
# Start API
HOST_IP=`/sbin/ip route|awk '/default/ { print $3 }'`
if [ "$WEB_GUNICORN" = 'true' ]; then
echo "Starting Gunicorn"
exec gunicorn mealie.app:app -b 0.0.0.0:$GUNICORN_PORT --forwarded-allow-ips=$HOST_IP -k uvicorn.workers.UvicornWorker -c /app/gunicorn_conf.py --preload
else
exec python /app/mealie/main.py
fi
exec python /app/mealie/main.py