From 96b92b6ee6e2986203e9a969ec4fe772ca234139 Mon Sep 17 00:00:00 2001 From: Jocelyn Delande Date: Wed, 10 Jun 2015 00:12:55 +0200 Subject: [PATCH] socket is now in /tmp/ as /var/run/ihatemoney gets rm on each reboot fixes #3 --- conf/gunicorn.conf.py | 2 +- conf/nginx.conf | 2 +- scripts/install | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/gunicorn.conf.py b/conf/gunicorn.conf.py index 5c3ae32..60fcdd1 100644 --- a/conf/gunicorn.conf.py +++ b/conf/gunicorn.conf.py @@ -4,4 +4,4 @@ debug = True workers = 3 logfile = "/var/log/ihatemoney/budget.gunicorn.log" loglevel = "info" -bind = "unix:/var/run/ihatemoney/budget.gunicorn.sock" +bind = "unix:/tmp/budget.gunicorn.sock" diff --git a/conf/nginx.conf b/conf/nginx.conf index a6c25f0..2a61105 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -13,7 +13,7 @@ location PATHTOCHANGE/ { proxy_busy_buffers_size 32k; proxy_intercept_errors on; if (!-f $request_filename) { - proxy_pass http://unix:/var/run/ihatemoney/budget.gunicorn.sock; + proxy_pass http://unix:/tmp/budget.gunicorn.sock; break; } diff --git a/scripts/install b/scripts/install index 69d1aef..259c55d 100755 --- a/scripts/install +++ b/scripts/install @@ -44,7 +44,7 @@ sudo chown -R www-data:www-data /opt/yunohost/ihatemoney/src/budget/static # Create various dirs sudo install -o ihatemoney -g ihatemoney -m 755 \ - -d /var/log/ihatemoney /etc/ihatemoney /var/run/ihatemoney/ + -d /var/log/ihatemoney /etc/ihatemoney # Configure gunicorn sudo install -o ihatemoney -g ihatemoney -m 644 \