feat: deploy — systemd service, mode: live, .gitignore

- config.yaml: mode: paper → live
- .gitignore: добавить .env, .DS_Store
- deploy/scalp-bot.service — systemd user unit
- deploy/update.sh — скрипт обновления на сервере

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-13 22:03:21 +10:00
co-authored by Claude Opus 4.6
parent bb11ddb2c3
commit 6a045d23f1
4 changed files with 32 additions and 1 deletions
+2
View File
@@ -2,3 +2,5 @@ cache/
data/
__pycache__/
.venv/
.env
.DS_Store
+1 -1
View File
@@ -1,4 +1,4 @@
mode: paper # paper | live
mode: live # paper | live
capital: 0 # 0 = auto-fetch from exchange balance
timeframe: "5m"
+22
View File
@@ -0,0 +1,22 @@
[Unit]
Description=scalp-bot ETH futures scalper (Bybit)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/home/anor/scalp-bot
EnvironmentFile=/home/anor/scalp-bot/.env
ExecStart=/home/anor/scalp-bot/.venv/bin/python cli.py daemon
Restart=on-failure
RestartSec=30
KillSignal=SIGTERM
TimeoutStopSec=30
StandardOutput=journal
StandardError=journal
SyslogIdentifier=scalp-bot
[Install]
WantedBy=default.target
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
cd /home/anor/scalp-bot
git pull --ff-only
source .venv/bin/activate
pip install -r requirements.txt --quiet
echo "Updated. Restart: systemctl --user restart scalp-bot"