From d1867f1f7423174546eacff704f9fc3426901a42 Mon Sep 17 00:00:00 2001 From: Jocelyn Delalande Date: Wed, 26 Jul 2017 16:14:26 +0200 Subject: [PATCH] Make the nginx deployment doc more accurate --- docs/installation.rst | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index 890ea0fc..70ad637c 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -70,12 +70,19 @@ With Apache and mod_wsgi With Nginx, Gunicorn and Supervisord ------------------------------------ -1. Add the lines in conf/supervisord.conf to your supervisord.conf file. -2. Copy and paste the content of conf/nginx.conf in your nginx conf file. -3. reload both nginx and supervisord. It should be working ;) +.. note:: For the 3 configuration files mentioned below, you will need to fix + the paths to reflect yours. + +1. Copy *conf/gunicorn.conf.py* to */etc/ihatemoney/gunicorn.conf.py* +2. Copy *conf/supervisord.conf* to */etc/supervisor/conf.d/ihatemoney.conf* +3. Copy *conf/nginx.conf* with your nginx vhosts [#nginx-vhosts]_ +4. Reload both nginx and supervisord. It should be working ;) Don't forget to set the right permission for your files ! +.. [#nginx-vhosts] typically, */etc/nginx/conf.d/* or + */etc/nginx/sites-available*, depending on your distribution. + Configuration =============