httpd (396B)
1 #!/usr/bin/env bash 2 3 # Open the developpement URL in $BROWSER 4 # Start the developpement Web server 5 6 # Dependency : 7 # - https://unix4lyfe.org/darkhttpd 8 9 if hash darkhttpd 2>/dev/null; then 10 xdg-open "http://localhost:8181" && 11 12 darkhttpd ./public_html --port 8181 13 else 14 echo "- Sorry But You must Install *darkhttpd*." 15 echo "- Please Visit <https://unix4lyfe.org/darkhttpd/>." 16 fi