26 lines
No EOL
610 B
Bash
Executable file
26 lines
No EOL
610 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "Stopping any existing servers..."
|
|
pkill -f "python.*run.py" || true
|
|
pkill -f "test_endpoint.py" || true
|
|
|
|
# Make the script executable
|
|
chmod +x ./backend/run.py
|
|
chmod +x ./backend/test_endpoint.py
|
|
|
|
# Start the test endpoint in a separate terminal window
|
|
echo "Starting test endpoint server..."
|
|
cd backend
|
|
python test_endpoint.py &
|
|
cd ..
|
|
|
|
echo "Waiting for test server to start..."
|
|
sleep 2
|
|
|
|
echo "You can now restart the React development server with:"
|
|
echo "cd frontend && npm start"
|
|
|
|
echo "To test the full application with large files, run:"
|
|
echo "cd backend && python run.py"
|
|
|
|
echo "Done!" |