- deploy/scalp-bot.service — systemd unit для пользователя scalp - deploy/update.sh — скрипт обновления на сервере - cli.py: stop-update cycle каждые 15 мин (trailing stops + safety orders) - executor.py: reconcile_positions (синхронизация с биржей), update_stops Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
200 B
Bash
Executable File
8 lines
200 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd /home/scalp/app
|
|
git pull --ff-only
|
|
source .venv/bin/activate
|
|
pip install -r requirements.txt --quiet
|
|
echo "Updated. Restart: sudo systemctl restart scalp-bot"
|