aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/conf-templates
diff options
context:
space:
mode:
Diffstat (limited to 'ihatemoney/conf-templates')
-rw-r--r--ihatemoney/conf-templates/apache-vhost.conf.j23
-rw-r--r--ihatemoney/conf-templates/supervisord.conf.j22
2 files changed, 2 insertions, 3 deletions
diff --git a/ihatemoney/conf-templates/apache-vhost.conf.j2 b/ihatemoney/conf-templates/apache-vhost.conf.j2
index 3246d27..e169589 100644
--- a/ihatemoney/conf-templates/apache-vhost.conf.j2
+++ b/ihatemoney/conf-templates/apache-vhost.conf.j2
@@ -1,8 +1,7 @@
<VirtualHost *:80>
ServerAdmin admin@example.com # CUSTOMIZE
ServerName ihatemoney.example.com # CUSTOMIZE
-
- WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 python-path={{ pkg_path }} {% if venv_path %}python-home={{ venv_path }}{% endif %}
+ WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 python-home={{ sys_prefix }}
WSGIScriptAlias / {{ pkg_path }}/wsgi.py
WSGIPassAuthorization On
diff --git a/ihatemoney/conf-templates/supervisord.conf.j2 b/ihatemoney/conf-templates/supervisord.conf.j2
index fa16c0c..605f39d 100644
--- a/ihatemoney/conf-templates/supervisord.conf.j2
+++ b/ihatemoney/conf-templates/supervisord.conf.j2
@@ -1,5 +1,5 @@
[program:ihatemoney]
-command={{ venv_path }}/bin/gunicorn -c /etc/ihatemoney/gunicorn.conf.py ihatemoney.wsgi:application
+command={{ bin_path }}/gunicorn -c /etc/ihatemoney/gunicorn.conf.py ihatemoney.wsgi:application
user=ihatemoney
autostart=true
autorestart=true