Add systemd service file
This commit is contained in:
13
server/.service
Normal file
13
server/.service
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=uvicorn service for api.lucasjensen.me
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=lucas
|
||||||
|
Group=www-data
|
||||||
|
WorkingDirectory=/home/lucas/LucasJensen/server
|
||||||
|
ExecStart=/home/lucas/LucasJensen/server/.venv/bin/uvicorn app:app --host 0.0.0.0 --port 8080 --workers 2
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user