19 lines
521 B
Desktop File
19 lines
521 B
Desktop File
# /etc/systemd/system/listapp.service
|
|
[Unit]
|
|
Description=ListApp - Flask application for hosts file conversion
|
|
After=network.target redis.service
|
|
|
|
[Service]
|
|
User=www-data
|
|
Group=www-data
|
|
WorkingDirectory=/var/www/listapp
|
|
Environment="PATH=/var/www/listapp/venv/bin"
|
|
#ExecStart=/var/www/listapp/bin/gunicorn -w 2 --bind 127.0.0.1:8283 app:app
|
|
ExecStart=/var/www/listapp/bin/gunicorn -k uvicorn.workers.UvicornWorker -w 4 --bind 127.0.0.1:8283 app:asgi_app
|
|
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|