#!/bin/bash set -e echo "๐Ÿ›‘ Stopping existing processes..." pkill -f botserver || true pkill -f botui || true pkill -f rustc || true echo "๐Ÿงน Cleaning logs..." rm -f botserver.log botui.log echo "๐Ÿ”จ Building botserver..." cargo build -p botserver echo "๐Ÿ”จ Building botui..." cargo build -p botui echo "๐Ÿš€ Starting botserver..." RUST_LOG=info ./target/debug/botserver --noconsole > botserver.log 2>&1 & BOTSERVER_PID=$! echo "๐Ÿš€ Starting botui..." BOTSERVER_URL="https://localhost:8088" ./target/debug/botui > botui.log 2>&1 & BOTUI_PID=$! echo "โœ… Started botserver (PID: $BOTSERVER_PID) and botui (PID: $BOTUI_PID)" echo "๐Ÿ“Š Monitor with: tail -f botserver.log botui.log" echo "๐ŸŒ Access at: http://localhost:3000"