Updating supervisor config to provide full path to monkey as it seems to ignore the venv added to the PATH variable
@@ -10,7 +10,7 @@ user=www-data
autostart=true
autorestart=true
environment=PYTHONPATH='/usr/local/src/security_monkey/',PATH="/usr/local/src/security_monkey/venv/bin:%(ENV_PATH)s"
-command=monkey run_api_server
+command=/usr/local/src/security_monkey/venv/bin/monkey run_api_server
[program:securitymonkeyscheduler]
user=www-data
@@ -18,4 +18,4 @@ autostart=true
autorestart=true
directory=/usr/local/src/security_monkey/
environment=PYTHONPATH='/usr/local/src/security_monkey/',PATH="/usr/local/src/security_monkey/venv/bin:%(ENV_PATH)s"
-command=monkey start_scheduler
+command=/usr/local/src/security_monkey/venv/bin/monkey start_scheduler
