diff --git a/deploy/inventree.conf b/deploy/supervisord.conf similarity index 86% rename from deploy/inventree.conf rename to deploy/supervisord.conf index 782b6ae2f6..d4f6ce4419 100644 --- a/deploy/inventree.conf +++ b/deploy/supervisord.conf @@ -13,7 +13,12 @@ [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 @@ -26,6 +31,7 @@ startretries=3 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 diff --git a/tasks.py b/tasks.py index 5f9cff6c7d..ebbe199865 100644 --- a/tasks.py +++ b/tasks.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from invoke import task +from invoke import ctask as task from shutil import copyfile import os