N4SM / start.sh
gaialive's picture
Upload 4 files
f317ff7 verified
raw
history blame contribute delete
364 Bytes
#!/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