ID: fe7eb26f64998bce5ab1ffa3ee5ac7990a8ad8c7
25 lines
—
634B —
View raw
| # systemd service file for starting the web app
#
# How to use this file:
# - copy this file to /etc/systemd/system
# - edit the variables below accordingly
# - systemctl enable website.service
# - systemctl start website.service
[Unit]
Description=DOKK website app
After=network.target
[Service]
# URI to Fuseki endpoint for querying
Environment=FUSEKI_ENDPOINT=https://example.org:3030/dokk
ExecStart=/home/fuseki/dokk.org/venv/bin/gunicorn --workers 2 --threads 4 --bind localhost:8080 app:application
User=fuseki
Group=fuseki
WorkingDirectory=/home/fuseki/dokk.org
Restart=always
[Install]
WantedBy=multi-user.target
|