Skip to content

Commit

Permalink
Update aliases
Browse files Browse the repository at this point in the history
Added alias for creating a reverse proxy.
  • Loading branch information
CodyBohn committed Feb 16, 2016
1 parent 587310c commit 8529d23
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/stubs/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,15 @@ function serve-hhvm() {
echo " serve-hhvm domain path"
fi
}

function serve-proxy() {
if [[ "$1" && "$2" ]]
then
sudo dos2unix /vagrant/scripts/serve-proxy.sh
sudo bash /vagrant/scripts/serve-proxy.sh "$1" "$2" 80
else
echo "Error: missing required parameters."
echo "Usage: "
echo " serve-proxy domain port"
fi
}

0 comments on commit 8529d23

Please sign in to comment.