1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fittrackee_ynh.git synced 2024-09-03 18:36:16 +02:00
This commit is contained in:
Thomas 2023-03-08 22:57:32 +01:00 committed by GitHub
parent 8b74231ae7
commit 5acfa4f6c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View file

@ -29,7 +29,7 @@ Environment="STATICMAP_SUBDOMAINS="
Environment="MAP_ATTRIBUTION=" Environment="MAP_ATTRIBUTION="
Environment="WEATHER_API_KEY=" Environment="WEATHER_API_KEY="
WorkingDirectory=__INSTALL_DIR__/ WorkingDirectory=__INSTALL_DIR__/
ExecStart=__INSTALL_DIR__/.venv/bin/gunicorn -b 127.0.0.1:__PORT__ "fittrackee:create_app()" --error-logfile /var/log/__APP__/__APP__.log ExecStart=__INSTALL_DIR__/.venv/bin/gunicorn -b 127.0.0.1:__PORT__ "fittrackee:create_app()" --error-logfile /var/log/__APP__/gunicorn.log

View file

@ -12,7 +12,7 @@ Restart=always
RestartSec=1 RestartSec=1
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
StandardOutput=append:/var/log/__APP__/__APP__.log StandardOutput=append:/var/log/__APP__/__APP___workers.log
StandardError=inherit StandardError=inherit
SyslogIdentifier=__APP___workers SyslogIdentifier=__APP___workers
EnvironmentFile=__INSTALL_DIR__/.env EnvironmentFile=__INSTALL_DIR__/.env

View file

@ -19,6 +19,7 @@ ynh_script_progression --message="Configuring logrotate to manage application lo
ynh_use_logrotate --specific_user=$app ynh_use_logrotate --specific_user=$app
touch /var/log/$app/$app.log touch /var/log/$app/$app.log
touch /var/log/$app/${app}_workers.log touch /var/log/$app/${app}_workers.log
touch /var/log/$app/gunicorn.log
chown -R $app:www-data /var/log/$app/ chown -R $app:www-data /var/log/$app/

View file

@ -23,6 +23,7 @@ ynh_script_progression --message="Configuring logrotate to manage application lo
ynh_use_logrotate --specific_user=$app ynh_use_logrotate --specific_user=$app
touch /var/log/$app/$app.log touch /var/log/$app/$app.log
touch /var/log/$app/${app}_workers.log touch /var/log/$app/${app}_workers.log
touch /var/log/$app/gunicorn.log
chown -R $app:www-data /var/log/$app/ chown -R $app:www-data /var/log/$app/
#================================================= #=================================================