X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/c4ec253cd69546987dc20dec4c9be9e3867986f2..f6a30b5b55786e17e583232526ababe164cccc30:/fnpdjango/deploy/templates/gunicorn.template?ds=inline diff --git a/fnpdjango/deploy/templates/gunicorn.template b/fnpdjango/deploy/templates/gunicorn.template index f79aa7e..e2f5b5a 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': '%(full_django_root)s', 'python': '%(app_path)s/ve/bin/python', 'user': '%(user)s', 'group': '%(user)s', @@ -8,7 +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', ), }