ID: 5c52480879fde8206212a607fcb44e212fd6115b
25 lines
—
610B —
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 --bind localhost:8080 app:application
User=fuseki
Group=fuseki
WorkingDirectory=/home/fuseki/dokk.org
Restart=always
[Install]
WantedBy=multi-user.target
|