mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
First pass at a supervisor.conf file
This commit is contained in:
parent
c6e154f996
commit
283663633a
31
deploy/inventree.conf
Normal file
31
deploy/inventree.conf
Normal file
@ -0,0 +1,31 @@
|
||||
; # 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]
|
||||
environment=INVENTREE_SRC_DIR="/mnt/c/inventree/InvenTree", INVENTREE_BIN_DIR="/mnt/c/inventree/InvenTree"
|
||||
|
||||
[program:inventree-server]
|
||||
directory=/mnt/c/inventree/InvenTree
|
||||
command=/mnt/c/inventree/inventree-env/bin/gunicorn -c gunicorn.conf.py InvenTree.wsgi
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startretries=3
|
||||
stderr_logfile=/var/log/inventree/server.err.log
|
||||
stdout_logfile=/var/log/inventree/server.out.log
|
||||
|
||||
[program:inventree-cluster]
|
||||
directory=/mnt/c/inventree/InvenTree
|
||||
command=/mnt/c/inventree/inventree-env/bin/python manage.py qcluster
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/log/inventree/cluster.err.log
|
||||
stdout_logfile=/var/log/inventree/cluster.out.log
|
Loading…
Reference in New Issue
Block a user