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:
parent
f3590b0d7c
commit
d0c01fc3d8
2 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,7 @@ gid = users
|
||||||
home = __FINALPATH__/venv
|
home = __FINALPATH__/venv
|
||||||
|
|
||||||
protocol = uwsgi
|
protocol = uwsgi
|
||||||
wsgi-file = __FINALPATH__/weblate/wsgi.py
|
wsgi-file = __FINALPATH__/venv/lib/python2.7/site-packages/weblate/wsgi.py
|
||||||
python-path = __FINALPATH__
|
python-path = __FINALPATH__
|
||||||
# Needed for OAuth/OpenID
|
# Needed for OAuth/OpenID
|
||||||
buffer-size = 8192
|
buffer-size = 8192
|
||||||
|
|
|
@ -52,6 +52,8 @@ ynh_webpath_register $app $domain $path_url
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
||||||
|
|
||||||
|
mkdir -p $final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE SETTINGS FROM MANIFEST
|
# STORE SETTINGS FROM MANIFEST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -141,6 +143,7 @@ virtualenv ${final_path}/venv
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP settings.py
|
# SPECIFIC SETUP settings.py
|
||||||
# https://docs.weblate.org/en/latest/admin/install.html#installation
|
# https://docs.weblate.org/en/latest/admin/install.html#installation
|
||||||
|
# TODO: use --extra-search-dir=/path/to/dists
|
||||||
#=================================================
|
#=================================================
|
||||||
echo "SPECIFIC SETUP settings.py"
|
echo "SPECIFIC SETUP settings.py"
|
||||||
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
|
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
|
||||||
|
|
Loading…
Reference in a new issue