{{cookiecutter.project_slug}}/etc/production.ini
changeset 0 e4f314a62bbf
equal deleted inserted replaced
-1:000000000000 0:e4f314a62bbf
       
     1 
       
     2 [app:main]
       
     3 use = egg:{{ cookiecutter.webapp_name }}
       
     4 
       
     5 pyramid.reload_templates = true
       
     6 pyramid.debug_authorization = false
       
     7 pyramid.debug_notfound = false
       
     8 pyramid.debug_routematch = false
       
     9 pyramid.default_locale_name = fr
       
    10 pyramid.includes =
       
    11     aiopyramid
       
    12     pyams_cache
       
    13     pyams_notify_ws
       
    14 
       
    15 pyams_notify_ws.cache_server =  {{ cookiecutter.cache_server }}
       
    16 
       
    17 [server:main]
       
    18 use = egg:gunicorn#main
       
    19 host = 0.0.0.0
       
    20 port = 8081
       
    21 worker_class = aiopyramid.gunicorn.worker.AsyncGunicornWorker
       
    22 worker_tmp_dir = $((INSTALL))/var/tmp
       
    23 preload = true
       
    24 reload = false
       
    25 proc_name = GUnicorn ({{ cookiecutter.project_name }})
       
    26 chdir = $((INSTALL))/var/tmp
       
    27 pidfile = $((INSTALL))/var/run/{{ cookiecutter.webapp_name }}.pid
       
    28 user = {{ cookiecutter.run_user }}
       
    29 group = {{ cookiecutter.run_group }}
       
    30 accesslog = {{ cookiecutter.logs_directory }}/{{ cookiecutter.webapp_name }}-access.log
       
    31 errorlog = {{ cookiecutter.logs_directory }}/{{ cookiecutter.webapp_name }}-error.log
       
    32 loglevel = debug
       
    33 
       
    34 [loggers]
       
    35 keys = root, {{ cookiecutter.project_slug }}
       
    36 
       
    37 [handlers]
       
    38 keys = console, filelog
       
    39 
       
    40 [formatters]
       
    41 keys = generic
       
    42 
       
    43 [logger_root]
       
    44 level = WARN
       
    45 handlers = console, filelog
       
    46 
       
    47 [logger_{{ cookiecutter.project_slug }}]
       
    48 level = WARN
       
    49 handlers =
       
    50 qualname = {{ cookiecutter.project_slug }}
       
    51 
       
    52 [handler_console]
       
    53 class = StreamHandler
       
    54 args = (sys.stderr,)
       
    55 level = NOTSET
       
    56 formatter = generic
       
    57 
       
    58 [handler_filelog]
       
    59 class = FileHandler
       
    60 args = ('$((INSTALL))/var/log/{{ cookiecutter.project_slug }}.log','a')
       
    61 level = WARN
       
    62 formatter = generic
       
    63 
       
    64 [formatter_generic]
       
    65 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s