ok
This commit is contained in:
20
scripts/run-server.sh
Executable file
20
scripts/run-server.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user