From 68f5d0502e2e25464577e3213a98f80394dba1f7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Fri, 15 Sep 2017 17:25:04 +0200 Subject: [PATCH] make sure wsgi use the virtualenv file --- conf/uwsgi.ini | 2 +- scripts/install | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/uwsgi.ini b/conf/uwsgi.ini index ab39ec6..e293d58 100644 --- a/conf/uwsgi.ini +++ b/conf/uwsgi.ini @@ -6,7 +6,7 @@ gid = users home = __FINALPATH__/venv protocol = uwsgi -wsgi-file = __FINALPATH__/weblate/wsgi.py +wsgi-file = __FINALPATH__/venv/lib/python2.7/site-packages/weblate/wsgi.py python-path = __FINALPATH__ # Needed for OAuth/OpenID buffer-size = 8192 diff --git a/scripts/install b/scripts/install index f5442dc..6230c96 100755 --- a/scripts/install +++ b/scripts/install @@ -141,6 +141,7 @@ virtualenv ${final_path}/venv #================================================= # SPECIFIC SETUP settings.py # https://docs.weblate.org/en/latest/admin/install.html#installation +# TODO: use --extra-search-dir=/path/to/dists #================================================= echo "SPECIFIC SETUP settings.py" db_pwd=$(ynh_app_setting_get $app mysqlpwd)