From 47ba0599eb2467239f6bb95ac050ae9cdbd227ca Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 1 Apr 2021 20:44:27 +1100 Subject: [PATCH] Reference environment variables in supervisor conf file --- docker/supervisor.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/supervisor.conf b/docker/supervisor.conf index 47eeaf6c28..363bbe6b4a 100644 --- a/docker/supervisor.conf +++ b/docker/supervisor.conf @@ -17,8 +17,8 @@ nodaemon=true [program:inventree-server] user=inventree -directory=/home/inventree/src/InvenTree -command=/home/inventree/env/bin/gunicorn -c /home/inventree/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:%(ENV_INVENTREE_PORT)s +directory=%(ENV_INVENTREE_SRC_DIR)s/InvenTree +command=%(ENV_INVENTREE_VENV)s/bin/gunicorn -c %(ENV_INVENTREE_HOME)s/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:%(ENV_INVENTREE_PORT)s startsecs=10 autostart=true autorestart=true @@ -30,8 +30,8 @@ stderr_logfile_maxbytes=0 [program:inventree-cluster] user=inventree -directory=/home/inventree/src/InvenTree -command=/home/inventree/env/bin/python manage.py qcluster +directory=%(ENV_INVENTREE_SRC_DIR)s/InvenTree +command=%(ENV_INVENTREE_VENV)s/bin/python manage.py qcluster startsecs=10 autostart=true autorestart=true