From 2e8d3b64244ae9b97537a233b081431edb44552c Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 11 Apr 2021 13:22:16 +1000 Subject: [PATCH] Fix for tasks.py (??) --- deploy/{inventree.conf => supervisord.conf} | 6 ++++++ tasks.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) rename deploy/{inventree.conf => supervisord.conf} (86%) 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