[cubicweb/uwsgi] don't use CW_DEBUG by default, have a configurable flag
authorArthur Lutz <arthur.lutz@logilab.fr>
Wed, 16 Jan 2019 17:17:23 +0100
changeset 128 2e4ca5189f0f
parent 127 1104f14a04b2
child 129 cf300e497691
[cubicweb/uwsgi] don't use CW_DEBUG by default, have a configurable flag
cubicweb/uwsgi/uwsgi.ini
pillar.example
--- a/cubicweb/uwsgi/uwsgi.ini	Thu Sep 27 11:38:31 2018 +0200
+++ b/cubicweb/uwsgi/uwsgi.ini	Wed Jan 16 17:17:23 2019 +0100
@@ -2,7 +2,9 @@
 master = true
 http = 0.0.0.0:{{ config.cwapp.port|default('8080', true) }}
 env = CW_INSTANCE={{ name }}
+{% if 'debug' in  config.cwapp_uwsgi_options.keys() and config.cwapp_uwsgi_options.debug %}
 env = CW_DEBUG=1
+{% endif }
 env = PYTHONPATH=/usr/share/cubicweb
 {% if 'file' in  config.cwapp_uwsgi_options.keys() and config.cwapp_uwsgi_options.file %}
 wsgi-file = {{ config.cwapp_uwsgi_options.file }}
--- a/pillar.example	Thu Sep 27 11:38:31 2018 +0200
+++ b/pillar.example	Wed Jan 16 17:17:23 2019 +0100
@@ -71,6 +71,7 @@
         stats_port: 1717
         #misc_options:
         #   - "evil-reload-on-rss=500M"
+        #debug : true
       pyramid:
         sessions_secret: CHANGEME
         authtk_sessions_secret: CHANGEME