deployment stuff
[fnpdjango.git] / fnpdjango / deploy / templates / gunicorn.template
diff --git a/fnpdjango/deploy/templates/gunicorn.template b/fnpdjango/deploy/templates/gunicorn.template
new file mode 100644 (file)
index 0000000..f79aa7e
--- /dev/null
@@ -0,0 +1,14 @@
+CONFIG = {
+    'mode': 'wsgi',
+    'working_dir': '%(app_path)s/releases/current/%(project_name)s',
+    'python': '%(app_path)s/ve/bin/python',
+    'user': '%(user)s',
+    'group': '%(user)s',
+    'args': (
+        '--bind=unix:/tmp/gunicorn-%(project_name)s.socket',
+        '--workers=1',
+        '--timeout=180',
+        'wsgi:application',
+        '--access-logfile=%(app_path)s/log/gunicorn.log',
+    ),
+}