1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

make sure wsgi use the virtualenv file

This commit is contained in:
Jean-Baptiste Holcroft 2017-09-15 17:25:04 +02:00
parent f3590b0d7c
commit d0c01fc3d8
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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)