Created
April 23, 2012 22:50
-
-
Save brianswisher/2474373 to your computer and use it in GitHub Desktop.
profile addon from node prototype demo
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 app { | |
if [ -z "$2" ] | |
then | |
appbranch=main; | |
else | |
appbranch=$2; | |
fi | |
webapp=$1WebApp; | |
builddir=/p4/phoenix/$appbranch/build; | |
appdir=/p4/phoenix/$appbranch/phoenixApp/$webapp; | |
alias compile="cd $builddir; ./ant scss -DcontextApp=$webapp"; | |
alias watch="cd $builddir; ./ant scss -DcontextApp=$webapp -Dmode=watch"; | |
alias proto="cd $appdir; node node/app.js"; | |
alias edit="cd $appdir; subl ."; | |
cd $appdir; | |
echo "Switched context to '$appbranch $webapp'."; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment