Created
August 27, 2015 08:41
-
-
Save nathanmac/a34d98ba5c6ee3fe0a3a to your computer and use it in GitHub Desktop.
Serve Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function serve() | |
{ | |
if [ -z $1 ]; then port=9999 else port=$1 fi | |
echo "----------------- Starting Server -----------------"; | |
php -S localhost:$port; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment