feat: implement database backup and restore functionality with authentication; add deployment script and service configuration

This commit is contained in:
ethan.chen
2025-05-19 17:55:39 +08:00
parent ca22da355d
commit 5721d26fae
4 changed files with 151 additions and 4 deletions

15
my-score.service Normal file
View 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