mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
fix logs
This commit is contained in:
parent
8b74231ae7
commit
5acfa4f6c7
4 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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/
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue