Spaces:
Running
Running
File size: 364 Bytes
bea7063 9bc6413 0ae16dd e21e66e bea7063 0ae16dd f317ff7 bea7063 e21e66e f317ff7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/bash
# Set the port for Hugging Face Spaces
export PORT=8501
# Start the backend server in the background on port 3000
echo "Starting backend server on port 3000..."
cd backend
PORT=3000 npm start &
cd ..
# Wait a moment for the backend to start
sleep 5
# Serve the frontend build
echo "Serving frontend on port $PORT..."
serve -s frontend/dist -l $PORT |