Add systemd service file

This commit is contained in:
Lucas Jensen
2024-07-07 09:39:58 -07:00
parent 758a40f6b5
commit 972e8637ce

13
server/.service Normal file
View 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