Files
novafarma/scripts/run-server.sh
2026-01-20 01:05:17 +01:00

21 lines
539 B
Bash
Executable File

#!/bin/bash
# Simple HTTP server to run the game locally
echo "🎮 Starting Mrtva Dolina local server..."
echo "📂 Serving from: $(pwd)"
echo "🌐 URL: http://localhost:8080"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
# Check if Python 3 is available
if command -v python3 &> /dev/null; then
python3 -m http.server 8080
elif command -v python &> /dev/null; then
python -m SimpleHTTPServer 8080
else
echo "❌ Error: Python not found!"
echo "Please install Python or use another HTTP server"
exit 1
fi