mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 01:55:39 +00:00
Fix for tasks.py (??)
This commit is contained in:
44
deploy/supervisord.conf
Normal file
44
deploy/supervisord.conf
Normal file
@ -0,0 +1,44 @@
|
||||
; # Supervisor Config File
|
||||
; Example configuration file for running InvenTree using supervisor
|
||||
; There are two separate processes which must be managed:
|
||||
;
|
||||
; ## Web Server
|
||||
; The InvenTree server must be launched and managed as a process
|
||||
; The recommended way to handle the web server is to use gunicorn
|
||||
;
|
||||
; ## Background Tasks
|
||||
; A background task manager processes long-running and periodic tasks
|
||||
; InvenTree uses django-q for this purpose
|
||||
|
||||
[supervisord]
|
||||
; Change this path if log files are stored elsewhere
|
||||
logfile=/home/inventree/log/supervisor.log
|
||||
user=inventree
|
||||
|
||||
[supervisorctl]
|
||||
serverurl=unix:///var/run/supervisor.sock
|
||||
|
||||
; InvenTree Web Server Process
|
||||
[program:inventree-server]
|
||||
user=inventree
|
||||
directory=/home/inventree/src/InvenTree
|
||||
command=/home/inventree/env/bin/gunicorn -c gunicorn.conf.py InvenTree.wsgi
|
||||
startsecs=10
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startretries=3
|
||||
; Change these paths if log files are stored elsewhere
|
||||
stderr_logfile=/home/inventree/log/server.err.log
|
||||
stdout_logfile=/home/inventree/log/server.out.log
|
||||
|
||||
; InvenTree Background Worker Process
|
||||
[program:inventree-cluster]
|
||||
user=inventree
|
||||
directory=/home/inventree/src/InvenTree
|
||||
command=/home/inventree/env/bin/python manage.py qcluster
|
||||
startsecs=10
|
||||
autostart=true
|
||||
autorestart=true
|
||||
; Change these paths if log files are stored elsewhere
|
||||
stderr_logfile=/home/inventree/log/cluster.err.log
|
||||
stdout_logfile=/home/inventree/log/cluster.out.log
|
Reference in New Issue
Block a user