mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
moved managelpy into entrypoint, hopefully fixed perms with socket
This commit is contained in:
parent
0c73549efb
commit
1c34fdba03
2 changed files with 7 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue