This commit is contained in:
2025-12-27 01:27:44 +01:00
parent aa1f5e30d9
commit 592914ae37
4 changed files with 60 additions and 14 deletions

15
testarena-app.service Normal file
View File

@@ -0,0 +1,15 @@
[Unit]
Description=TestArena FastAPI Application
After=network.target
[Service]
User=asf
Group=asf
WorkingDirectory=/home/asf/testarena_backend
Environment="PATH=/home/asf/testarena_backend/venv/bin"
Environment="DATABASE_URL=sqlite:////home/asf/testarena/testarena.db"
ExecStart=/home/asf/testarena_backend/venv/bin/uvicorn testarena_app.main:app --host 0.0.0.0 --port 8000
Restart=always
[Install]
WantedBy=multi-user.target