From f5e9a6c056027beeac285f092b95e8607297ce1a Mon Sep 17 00:00:00 2001 From: 0livd <0livd@users.noreply.github.com> Date: Tue, 27 Jun 2017 18:27:56 +0200 Subject: [PATCH] Update conf files to use the new wsgi module Apache and gunicorn now use the same entrypoint --- conf/apache-vhost.conf | 2 +- conf/supervisord.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/apache-vhost.conf b/conf/apache-vhost.conf index b3f13495..b26feaa5 100644 --- a/conf/apache-vhost.conf +++ b/conf/apache-vhost.conf @@ -3,7 +3,7 @@ ServerName ihatemoney.example.com # Uncomment the python-home option if you use a virtualenv WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 python-path=/path/to/ihatemoney/budget # python-home=/path/to/your/venv - WSGIScriptAlias / /path/to/ihatemoney/budget/ihatemoney.wsgi + WSGIScriptAlias / /path/to/ihatemoney/budget/wsgi.py ErrorLog /var/log/apache2/ihatemoney.example.com_error.log CustomLog /var/log/apache2/ihatemoney.example.com_access.log combined diff --git a/conf/supervisord.conf b/conf/supervisord.conf index ec2d452f..1b5dbbf0 100644 --- a/conf/supervisord.conf +++ b/conf/supervisord.conf @@ -1,5 +1,5 @@ [program:budget] -command=/path/to/your/app/venv/bin/gunicorn -c /path/to/your/app/conf/gunicorn.conf.py run:app +command=/path/to/your/app/venv/bin/gunicorn -c /path/to/your/app/conf/gunicorn.conf.py wsgi:application directory=/path/to/your/app/budget/ user=www autostart=true