bookwyrm_ynh/conf/bookwyrm-server.service
2023-11-13 13:59:16 +01:00

15 lines
366 B
Desktop File

[Unit]
Description=__APP__ application server
After=network.target postgresql.service redis.service
PartOf=__APP__.target
[Service]
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/.env
ExecStart=__INSTALL_DIR__/venv/bin/gunicorn bookwyrm.wsgi:application --bind 127.0.0.1:__PORT__
[Install]
WantedBy=multi-user.target