hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit a5f41862d2e63372c14b613cdacdcecfbea7a6b2
parent dc4e60b7d8f8973984d774887c6666b9940a34d7
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Thu, 16 Mar 2017 17:33:27 -0400

Add bash script to Launch the developpement URL in $BROWSER And Start
the developpement Web server

Diffstat:
Ahttpd | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/httpd b/httpd @@ -0,0 +1,22 @@ +#!/bin/bash + +# Launch the developpement URL in $BROWSER +# Start the developpement Web server + +# Dependency : +# - https://unix4lyfe.org/darkhttpd + +# Include fakestache configuration files +. config/site.cfg +. config/app.cfg + +if hash darkhttpd 2>/dev/null; then + "$BROWSER" "$SITE_URL_DEV" && + + darkhttpd "$TMP_PATH/$PUBLICHTML/" --port "$SITE_PORT_DEV" + +else + echo "- Sorry But You must Install *darkhttpd*." + echo "- Please Visit <https://unix4lyfe.org/darkhttpd/>." +fi +