From 2dd9da90332d6a148b469163c22ab5caa9aab8b4 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sat, 20 Jan 2024 10:59:49 +0100 Subject: [PATCH] revert --- conf/nginx.conf | 2 +- conf/weblate.service | 2 +- scripts/install | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7eba942..4e226ab 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -21,7 +21,7 @@ # Needed for long running operations in admin interface uwsgi_read_timeout 3600; # Adjust based to uwsgi configuration: - uwsgi_pass 127.0.0.1:8080; + uwsgi_pass unix:///var/run/__NAME__/socket; # uwsgi_pass 127.0.0.1:8080; diff --git a/conf/weblate.service b/conf/weblate.service index a3a2f13..6ffe8df 100644 --- a/conf/weblate.service +++ b/conf/weblate.service @@ -15,7 +15,7 @@ RuntimeDirectory=__APP__ ExecStartPre=/bin/chown -R __APP__ /var/log/__APP__ ExecStart=/usr/bin/uwsgi \ - --ini __INSTALL_DIR__/venv/lib/__WEBLATE_PYPATH__/site-packages/weblate/__APP__.ini \ + --ini /etc/uwsgi/apps-available/__APP__.ini \ --logto /var/log/__APP__/weblate.log diff --git a/scripts/install b/scripts/install index 02fd61c..77213da 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="$install_dir/venv/lib/$weblate_pypath/site-packages/weblate/$app.ini" +ynh_add_config --template="../conf/uwsgi.ini" --destination="/etc/uwsgi/apps-available//$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"