[cubicweb/uwsgi] make module configurable
authorArthur Lutz <arthur.lutz@logilab.fr>
Thu, 26 Jan 2017 16:33:29 +0100
changeset 112 308bde45ba1e
parent 111 a18ffb06f595
child 113 e7bdd07a067a
[cubicweb/uwsgi] make module configurable
cubicweb/uwsgi/uwsgi.ini
--- a/cubicweb/uwsgi/uwsgi.ini	Thu Jan 26 12:19:58 2017 +0100
+++ b/cubicweb/uwsgi/uwsgi.ini	Thu Jan 26 16:33:29 2017 +0100
@@ -5,6 +5,8 @@
 #env = CW_DEBUG=1
 {% if 'file' in  config.cwapp_uwsgi_options.keys() and config.cwapp_uwsgi_options.file %}
 wsgi-file = {{ config.cwapp_uwsgi_options.file }}
+{% elif 'module' in config.cwapp_uwsgi_options.keys() and config.cwapp_uwsgi_options.module %}
+module =  {{ config.cwapp_uwsgi_options.module }}
 {% else %}
 module = cubicweb.pyramid:wsgi_application()
 {% endif %}