{{cookiecutter.project_slug}}/etc/production.ini
changeset 0 e4f314a62bbf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/{{cookiecutter.project_slug}}/etc/production.ini	Fri Jun 02 15:07:36 2017 +0200
@@ -0,0 +1,65 @@
+
+[app:main]
+use = egg:{{ cookiecutter.webapp_name }}
+
+pyramid.reload_templates = true
+pyramid.debug_authorization = false
+pyramid.debug_notfound = false
+pyramid.debug_routematch = false
+pyramid.default_locale_name = fr
+pyramid.includes =
+    aiopyramid
+    pyams_cache
+    pyams_notify_ws
+
+pyams_notify_ws.cache_server =  {{ cookiecutter.cache_server }}
+
+[server:main]
+use = egg:gunicorn#main
+host = 0.0.0.0
+port = 8081
+worker_class = aiopyramid.gunicorn.worker.AsyncGunicornWorker
+worker_tmp_dir = $((INSTALL))/var/tmp
+preload = true
+reload = false
+proc_name = GUnicorn ({{ cookiecutter.project_name }})
+chdir = $((INSTALL))/var/tmp
+pidfile = $((INSTALL))/var/run/{{ cookiecutter.webapp_name }}.pid
+user = {{ cookiecutter.run_user }}
+group = {{ cookiecutter.run_group }}
+accesslog = {{ cookiecutter.logs_directory }}/{{ cookiecutter.webapp_name }}-access.log
+errorlog = {{ cookiecutter.logs_directory }}/{{ cookiecutter.webapp_name }}-error.log
+loglevel = debug
+
+[loggers]
+keys = root, {{ cookiecutter.project_slug }}
+
+[handlers]
+keys = console, filelog
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = WARN
+handlers = console, filelog
+
+[logger_{{ cookiecutter.project_slug }}]
+level = WARN
+handlers =
+qualname = {{ cookiecutter.project_slug }}
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = NOTSET
+formatter = generic
+
+[handler_filelog]
+class = FileHandler
+args = ('$((INSTALL))/var/log/{{ cookiecutter.project_slug }}.log','a')
+level = WARN
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s