Merge pull request 'Add systemd service file' (#8) from server-service into main
Reviewed-on: #8
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