1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-24 14:04:19 +00:00
pds-2021-g2-nest/legacy/doc/web-nest.service

16 lines
476 B
Desktop File

[Unit]
Description=N.E.S.T. Backend Webserver
Wants=network-online.target postgresql.service
After=network-online.target nss-lookup.target postgresql.service
[Service]
Type=exec
User=nest
Group=nest
# Cambia questa riga alla tua directory di installazione
WorkingDirectory=/srv/nest
# Cambia questa riga al tuo venv
ExecStart=/srv/nest/venv/bin/gunicorn -b 127.0.0.1:5000 --env "FLASK_CONFIG=/srv/nest/config.py" nest_backend.app:rp_app
[Install]
WantedBy=multi-user.target