mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
updated celery to work in aio container, added new uwsgi config files based on environment
This commit is contained in:
parent
573655d269
commit
3c6be9b195
4 changed files with 40 additions and 5 deletions
|
|
@ -2,7 +2,7 @@ Django==5.1.6
|
|||
gunicorn==23.0.0
|
||||
psycopg2-binary==2.9.10
|
||||
redis==4.5.5
|
||||
celery==5.2.7
|
||||
celery
|
||||
djangorestframework==3.15.2
|
||||
requests==2.32.3
|
||||
psutil==7.0.0
|
||||
|
|
|
|||
19
uwsg.aio.ini
Normal file
19
uwsg.aio.ini
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[uwsgi]
|
||||
preexec = python manage.py collectstatic --noinput
|
||||
preexec = python manage.py migrate --noinput
|
||||
|
||||
http-socket = [::]:9191
|
||||
buffer-size = 32768
|
||||
enable-threads
|
||||
plugin = python3
|
||||
module = dispatcharr.wsgi:application
|
||||
static-map = /static=staticfiles
|
||||
thunder-lock
|
||||
disable-write-exception
|
||||
|
||||
virtualenv = /dispatcharrpy
|
||||
|
||||
max-fd = 10000
|
||||
|
||||
attach-daemon = celery -A dispatcharr worker -l info
|
||||
attach-daemon = redis-server
|
||||
20
uwsgi.dev.ini
Normal file
20
uwsgi.dev.ini
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[uwsgi]
|
||||
preexec = python manage.py collectstatic --noinput
|
||||
preexec = python manage.py migrate --noinput
|
||||
|
||||
http-socket = [::]:5656
|
||||
buffer-size = 32768
|
||||
enable-threads
|
||||
plugin = python3
|
||||
module = dispatcharr.wsgi:application
|
||||
static-map = /static=staticfiles
|
||||
thunder-lock
|
||||
disable-write-exception
|
||||
|
||||
virtualenv = /dispatcharrpy
|
||||
|
||||
max-fd = 10000
|
||||
|
||||
attach-daemon = celery -A dispatcharr worker -l info
|
||||
attach-daemon = redis-server
|
||||
attach-daemon = npm run start
|
||||
|
|
@ -14,7 +14,3 @@ disable-write-exception
|
|||
virtualenv = /dispatcharrpy
|
||||
|
||||
max-fd = 10000
|
||||
|
||||
; attach-daemon = npm run start
|
||||
; attach-daemon = python3 ./manage.py sendreports --loop
|
||||
; attach-daemon = python3 ./manage.py smtpd --port 2525
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue