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..e359cef 100755 --- a/scripts/install +++ b/scripts/install @@ -52,6 +52,8 @@ ynh_webpath_register $app $domain $path_url final_path=/var/www/$app test ! -e "$final_path" || ynh_die "This path already contains a folder" +mkdir -p $final_path + #================================================= # STORE SETTINGS FROM MANIFEST #================================================= @@ -141,6 +143,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)