1
0
Fork 0
mirror of https://github.com/Luzifer/termux-cfg.git synced 2024-12-20 16:51:15 +00:00
termux-cfg/.shortcuts/start_server

12 lines
307 B
Text
Raw Permalink Normal View History

2019-10-19 18:12:22 +00:00
#!/data/data/com.termux/files/usr/bin/env bash
2019-10-19 19:06:44 +00:00
set -euo pipefail
2019-10-19 18:12:22 +00:00
2019-10-19 19:06:44 +00:00
echo "### Current IP confguration"
ip address show dev wlan0
echo "### Starting server on port 8080"
echo "Press Ctrl+C to quit"
2019-10-19 18:12:22 +00:00
exec /data/data/com.termux/files/home/bin/gziphttp \
--serve-dir /storage/emulated/0/public \
--listen :8080