diff --git a/conf/uwsgi.ini b/conf/uwsgi.ini index 9420bb8..56b1bab 100644 --- a/conf/uwsgi.ini +++ b/conf/uwsgi.ini @@ -3,7 +3,7 @@ plugins = python3 master = true protocol = uwsgi socket = /var/run/__APP__/socket -wsgi-file = /etc/uwsgi/apps-available/__APP__.ini +wsgi-file = __INSTALL_DIR__/venv/lib/$weblate_pypath/site-packages/weblate/__APP__.ini # Add path to Weblate checkout if you did not install # Weblate by pip diff --git a/scripts/install b/scripts/install index ae5bc85..02fd61c 100755 --- a/scripts/install +++ b/scripts/install @@ -128,7 +128,7 @@ set_forge_variables ynh_add_config --template="../conf/settings.py" --destination="$settings" ynh_add_config --template="../conf/celery-weblate" --destination="$install_dir/celery-weblate" -ynh_add_config --template="../conf/uwsgi.ini" --destination="/etc/uwsgi/apps-available/$app.ini" +ynh_add_config --template="../conf/uwsgi.ini" --destination="$install_dir/venv/lib/$weblate_pypath/site-packages/weblate/$app.ini" touch "$install_dir/local_settings.py" ln -sf "$install_dir/local_settings.py" "$install_dir/venv/lib/$weblate_pypath/site-packages/weblate/local_settings.py"