23 lines
467 B
Bash
23 lines
467 B
Bash
#!/bin/bash
|
|
cd "$(dirname "$0")"
|
|
|
|
pkill -f xampp-backend 2>/dev/null
|
|
pkill -f http-server 2>/dev/null
|
|
pkill -f 'python3 -m http.server' 2>/dev/null
|
|
sleep 1
|
|
|
|
sudo -v
|
|
|
|
echo "Starting XAMPP GUI Backend..."
|
|
python3 xampp-backend.py &
|
|
python3 http-server.py &
|
|
|
|
sleep 1
|
|
|
|
xdg-open "http://localhost:8080/" 2>/dev/null || \
|
|
firefox "http://localhost:8080/" 2>/dev/null || \
|
|
echo "Open manually: http://localhost:8080/"
|
|
|
|
echo "GUI running at: http://localhost:8080/"
|
|
wait
|