1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00
This commit is contained in:
Thomas 2024-01-20 10:59:49 +01:00 committed by GitHub
parent eca120a311
commit 2dd9da9033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@
# Needed for long running operations in admin interface # Needed for long running operations in admin interface
uwsgi_read_timeout 3600; uwsgi_read_timeout 3600;
# Adjust based to uwsgi configuration: # 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; # uwsgi_pass 127.0.0.1:8080;

View file

@ -15,7 +15,7 @@ RuntimeDirectory=__APP__
ExecStartPre=/bin/chown -R __APP__ /var/log/__APP__ ExecStartPre=/bin/chown -R __APP__ /var/log/__APP__
ExecStart=/usr/bin/uwsgi \ 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 --logto /var/log/__APP__/weblate.log

View file

@ -128,7 +128,7 @@ set_forge_variables
ynh_add_config --template="../conf/settings.py" --destination="$settings" 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/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" 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" ln -sf "$install_dir/local_settings.py" "$install_dir/venv/lib/$weblate_pypath/site-packages/weblate/local_settings.py"