Upload files to "/"
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user