2018-04-17 00:02:25 +02:00
|
|
|
[Unit]
|
2021-04-16 14:14:27 +02:00
|
|
|
Description=__APP__ application server
|
2018-04-17 00:02:25 +02:00
|
|
|
After=redis.service postgresql.service
|
|
|
|
PartOf=__APP__.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=__APP__
|
2018-10-21 11:15:08 +02:00
|
|
|
Group=__APP__
|
2021-04-16 14:14:27 +02:00
|
|
|
WorkingDirectory=__FINALPATH__/api
|
|
|
|
EnvironmentFile=__FINALPATH__/config/.env
|
|
|
|
ExecStart=__FINALPATH__/virtualenv/bin/gunicorn config.asgi:application -w ${FUNKWHALE_WEB_WORKERS} -k uvicorn.workers.UvicornWorker -b ${FUNKWHALE_API_IP}:${FUNKWHALE_API_PORT}
|
2018-10-21 11:15:08 +02:00
|
|
|
|
2018-04-17 00:02:25 +02:00
|
|
|
[Install]
|
2019-10-31 18:25:28 +01:00
|
|
|
WantedBy=multi-user.target
|