push
This commit is contained in:
18
listapp.service
Normal file
18
listapp.service
Normal file
@@ -0,0 +1,18 @@
|
||||
# /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
|
Reference in New Issue
Block a user