django_example_ynh/conf/systemd.service

18 lines
342 B
SYSTEMD
Raw Permalink Normal View History

2020-12-23 19:53:13 +01:00
[Unit]
2021-09-15 19:16:35 +02:00
Description=__APP__ server
2020-12-23 19:53:13 +01:00
After=redis.service postgresql.service
[Service]
User=__APP__
Group=__APP__
2023-08-20 17:18:17 +02:00
WorkingDirectory=__DATA_DIR__/
2020-12-23 19:53:13 +01:00
2023-08-20 17:18:17 +02:00
ExecStart=__DATA_DIR__/venv/bin/gunicorn --config __DATA_DIR__/gunicorn.conf.py wsgi
2020-12-23 19:53:13 +01:00
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=__APP__-server
[Install]
WantedBy=multi-user.target