mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-11 15:11:49 +02:00
The script was relying on the presence of an environment variable, which is only set when the virtualenv is activated. But a virtualenv does not have to be activated to work (it's possible to call the python command directly). This fixes it by relying on `sys.executable` which should be correct at all times. Fixes #306
6 lines
186 B
Django/Jinja
6 lines
186 B
Django/Jinja
[program:ihatemoney]
|
|
command={{ bin_path }}/gunicorn -c /etc/ihatemoney/gunicorn.conf.py ihatemoney.wsgi:application
|
|
user=ihatemoney
|
|
autostart=true
|
|
autorestart=true
|
|
redirect_stderr=true
|