Glossify / run_dev.sh
ldm0612's picture
fix(frontend): use relative imports for CI build
f5a09f9
Raw History Blame Contribute Delete
704 Bytes
#!/bin/bash
echo "Starting Glossify-PoC development servers..."
# Function to kill background processes on exit
cleanup() {
echo "Stopping servers..."
kill $BACKEND_PID $FRONTEND_PID 2>/dev/null
exit
}
trap cleanup SIGINT SIGTERM
# Start backend
echo "Starting backend server..."
cd backend
conda activate BAI6
python app/main.py &
BACKEND_PID=$!
# Wait a moment for backend to start
sleep 3
# Start frontend
echo "Starting frontend server..."
cd ../frontend
npm run dev &
FRONTEND_PID=$!
echo "Backend running on http://localhost:5000"
echo "Frontend running on http://localhost:3000"
echo "Press Ctrl+C to stop both servers"
# Wait for both processes
wait $BACKEND_PID $FRONTEND_PID