InvenTree/deploy/inventree.conf

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-03-19 10:52:36 +00:00
; # 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]
2021-03-23 21:32:00 +00:00
; Change this path if log files are stored elsewhere
logfile=/home/inventree/log/supervisor.log
2021-03-19 10:52:36 +00:00
[program:inventree-server]
2021-03-23 21:32:00 +00:00
user=inventree
directory=/home/inventree/src/InvenTree
command=/home/inventree/env/bin/gunicorn -c gunicorn.conf.py InvenTree.wsgi
2021-03-23 21:32:00 +00:00
startsecs=10
2021-03-19 10:52:36 +00:00
autostart=true
autorestart=true
startretries=3
2021-03-23 21:32:00 +00:00
; 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
2021-03-19 10:52:36 +00:00
[program:inventree-cluster]
2021-03-23 21:32:00 +00:00
user=inventree
directory=/home/inventree/src/InvenTree
command=/home/inventree/env/bin/python manage.py qcluster
2021-03-23 21:32:00 +00:00
startsecs=10
2021-03-19 10:52:36 +00:00
autostart=true
autorestart=true
2021-03-23 21:32:00 +00:00
; 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