[uwsgi] add a PYTHONPATH env var with /usr/share/cubicweb
authorArthur Lutz <arthur.lutz@logilab.fr>
Thu, 09 Mar 2017 19:35:12 +0100
changeset 122 d8ced0682c44
parent 121 028f9fbae8ea
child 123 3e962832e9d3
[uwsgi] add a PYTHONPATH env var with /usr/share/cubicweb seems required for old style cubes...
cubicweb/uwsgi/uwsgi.ini
--- a/cubicweb/uwsgi/uwsgi.ini	Wed Feb 22 11:23:53 2017 +0100
+++ b/cubicweb/uwsgi/uwsgi.ini	Thu Mar 09 19:35:12 2017 +0100
@@ -3,6 +3,7 @@
 http = 0.0.0.0:{{ config.cwapp.port|default('8080', true) }}
 env = CW_INSTANCE={{ name }}
 #env = CW_DEBUG=1
+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 }}
 {% elif 'module' in config.cwapp_uwsgi_options.keys() and config.cwapp_uwsgi_options.module %}