feat: implement database backup and restore functionality with authentication; add deployment script and service configuration
This commit is contained in:
15
my-score.service
Normal file
15
my-score.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=My Score Backend Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=ubuntu
|
||||
Group=ubuntu
|
||||
WorkingDirectory=/home/ubuntu/my-score/backend
|
||||
Environment="PATH=/home/ubuntu/my-score/backend/venv/bin"
|
||||
ExecStart=/home/ubuntu/my-score/backend/venv/bin/python app.py
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user