updated deploymentfiles
Some checks failed
Deploy / lint (push) Successful in 5s
Deploy / test (push) Successful in 28s
Deploy / deploy (push) Failing after 5s

This commit is contained in:
2026-03-03 20:05:04 +01:00
parent 12788a3946
commit 0cdf51bfc6
2 changed files with 11 additions and 11 deletions

View File

@@ -0,0 +1,29 @@
# systemd service for signalplatform
#
# Installation:
# sudo cp deploy/signalplatform.service /etc/systemd/system/
# sudo systemctl daemon-reload
# sudo systemctl enable signalplatform
# sudo systemctl start signalplatform
#
# Customize:
# - User/Group: create with `sudo useradd -r -s /usr/sbin/nologin stockdata`
# - WorkingDirectory: adjust if installed elsewhere
# - EnvironmentFile: ensure .env exists at the specified path
[Unit]
Description=Stock Data Backend
After=network.target postgresql.service
[Service]
Type=exec
User=deploy
Group=deploy
WorkingDirectory=/opt/signalplatform
EnvironmentFile=/opt/signalplatform/.env
ExecStart=/opt/signalplatform/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8998 --workers 1
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target