Backend: add montana-mess.service
This commit is contained in:
parent
73d1315a0c
commit
abdeedbf81
15
Backend/Messenger/montana-mess.service
Normal file
15
Backend/Messenger/montana-mess.service
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Montana Messenger Backend
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/mess
|
||||||
|
Environment="MESS_DB=/opt/mess/data.db"
|
||||||
|
ExecStart=/opt/mess/venv/bin/uvicorn messenger:app --host 127.0.0.1 --port 5051 --workers 1
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=3
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
Reference in New Issue
Block a user