chore(deploy): keep start scripts and systemd units in deploy/
The three services become quant-trading-monitor, quant-trading-api and quant-trading-vite, run from /home/gahow/projects/quant-trading. Their units were previously untracked files in ~/.config/systemd/user. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
14
deploy/systemd/quant-trading-api.service
Normal file
14
deploy/systemd/quant-trading-api.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Quant trading web API server
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/gahow/projects/quant-trading/web
|
||||
ExecStart=/home/gahow/projects/quant-trading/deploy/start-web-api.sh
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
Environment=NODE_ENV=production
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
14
deploy/systemd/quant-trading-monitor.service
Normal file
14
deploy/systemd/quant-trading-monitor.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Quant live trader monitor (US + CN, all strategies)
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/gahow/projects/quant-trading
|
||||
ExecStart=/home/gahow/projects/quant-trading/deploy/start-monitor.sh
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
13
deploy/systemd/quant-trading-vite.service
Normal file
13
deploy/systemd/quant-trading-vite.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Quant trading web frontend (Vite dev server behind nginx)
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/gahow/projects/quant-trading/web
|
||||
ExecStart=/home/gahow/projects/quant-trading/deploy/start-web-vite.sh
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user