moved managelpy into entrypoint, hopefully fixed perms with socket

This commit is contained in:
dekzter 2025-03-05 15:24:29 -05:00
parent 0c73549efb
commit 1c34fdba03
2 changed files with 7 additions and 3 deletions

View file

@ -79,6 +79,10 @@ else
pids+=("$nginx_pid")
fi
cd /app
python manage.py migrate
python manage.py collectstatic
echo "🚀 Starting uwsgi..."
su - $POSTGRES_USER -c "cd /app && uwsgi --ini /app/docker/uwsgi.ini &"
uwsgi_pid=$(pgrep uwsgi | sort | head -n1)

View file

@ -1,6 +1,6 @@
[uwsgi]
exec-before = python manage.py collectstatic --noinput
exec-before = python manage.py migrate --noinput
; exec-before = python manage.py collectstatic --noinput
; exec-before = python manage.py migrate --noinput
attach-daemon = celery -A dispatcharr worker -l info
attach-daemon = redis-server
@ -14,7 +14,7 @@ virtualenv = /dispatcharrpy
master = true
env = DJANGO_SETTINGS_MODULE=dispatcharr.settings
socket = /app/uwsgi.sock
chmod-socket = 664
; chmod-socket = 664
vacuum = true
die-on-term = true