From: Radek Czajka Date: Wed, 31 Jul 2013 20:06:02 +0000 (+0200) Subject: gunicorn sample fix X-Git-Tag: 0.1.8~5 X-Git-Url: https://git.mdrn.pl/fnpdjango.git/commitdiff_plain/6dd1502a31e454ffb119da25684d0ff327d84914?ds=sidebyside;hp=f821cfe126c58ae516a0ef387be901b63951df9f gunicorn sample fix --- diff --git a/fnpdjango/deploy/templates/gunicorn.template b/fnpdjango/deploy/templates/gunicorn.template index 5cf60f4..40e4bd9 100644 --- a/fnpdjango/deploy/templates/gunicorn.template +++ b/fnpdjango/deploy/templates/gunicorn.template @@ -1,6 +1,6 @@ CONFIG = { 'mode': 'wsgi', - 'working_dir': '%(app_path)s/releases/current/%(project_name)s', + 'working_dir': '%(app_path)s/releases/current', 'python': '%(app_path)s/ve/bin/python', 'user': '%(user)s', 'group': '%(user)s', @@ -8,8 +8,8 @@ CONFIG = { '--bind=unix:/tmp/gunicorn-%(project_name)s.socket', '--workers=1', '--timeout=180', - 'wsgi:application', + '%(project_name)s.wsgi:application', '--access-logfile=%(app_path)s/log/gunicorn.log', - '--error-logfile=%(app_path)s/log/gunicorn-error.log'. + '--error-logfile=%(app_path)s/log/gunicorn-error.log', ), }