veza/start_recovery.sh

15 lines
419 B
Bash
Executable file

#!/bin/bash
# Stop any existing processes
pkill -f "air\|cargo watch\|npm run dev\|go run.*modern-server" 2>/dev/null || true
# Start Backend
cd veza-backend-api
nohup go run cmd/modern-server/main.go > backend.log 2>&1 &
BACKEND_PID=$!
echo "Backend started with PID $BACKEND_PID"
# Start Frontend
cd ../apps/web
nohup npm run dev > frontend.log 2>&1 &
FRONTEND_PID=$!
echo "Frontend started with PID $FRONTEND_PID"