From bbd2bc6d091fc0edf8e5c2249179fe9fa4f9069e Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Fri, 22 May 2015 16:38:15 +0200 Subject: [PATCH] Add config to send access log to file --- application-template.json | 9 +++++++++ gunicorn_conf.py | 1 + 2 files changed, 10 insertions(+) create mode 100644 gunicorn_conf.py diff --git a/application-template.json b/application-template.json index 6df6aa1e..71be4f83 100644 --- a/application-template.json +++ b/application-template.json @@ -168,6 +168,10 @@ "name": "APP_MODULE", "value": "${APP_MODULE}" }, + { + "name": "APP_CONFIG", + "value": "${APP_CONFIG}" + }, { "name": "DJANGO_SECRET_KEY", "value": "${DJANGO_SECRET_KEY}" @@ -293,6 +297,11 @@ "description": "Python dotted path to your Django WSGI application", "value": "project.wsgi" }, + { + "name": "APP_CONFIG", + "description": "Relative path to Gunicorn configuration file (optional)", + "value": "gunicorn_conf.py" + }, { "name": "DJANGO_SECRET_KEY", "description": "Django secret key", diff --git a/gunicorn_conf.py b/gunicorn_conf.py new file mode 100644 index 00000000..a73c815d --- /dev/null +++ b/gunicorn_conf.py @@ -0,0 +1 @@ +accesslog = "access.log"