Initial commit
This commit is contained in:
16
deploy/voley.service
Normal file
16
deploy/voley.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Voley Attendance App
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/opt/voley
|
||||
EnvironmentFile=/opt/voley/.env
|
||||
ExecStart=/opt/voley/.venv/bin/uvicorn main:app --host 127.0.0.1 --port 8000 --workers 2
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user