deploy: 2026-03-20 07:49
This commit is contained in:
11
reset_and_restart.sh
Normal file
11
reset_and_restart.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
pkill -f "main.py --paper" 2>/dev/null
|
||||
sleep 2
|
||||
rm -f ~/ict-crypto-bot/data/trading.db
|
||||
echo "DB reset"
|
||||
cd ~/ict-crypto-bot
|
||||
source venv/bin/activate
|
||||
nohup env SMC_CREDIT=0 python main.py --paper > logs/bot.log 2>&1 &
|
||||
echo "Bot started PID: $!"
|
||||
sleep 8
|
||||
tail -40 logs/bot.log
|
||||
Reference in New Issue
Block a user