Created
May 24, 2012 22:06
-
-
Save brianp/2784479 to your computer and use it in GitHub Desktop.
serve it up for everyone
This file contains hidden or 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
| serve_soup() | |
| { | |
| current_branch=`git status | head -n 1 | awk '{print $4}'` | |
| old_dir=`pwd` | |
| echo "Finding a ladel then serving the soup... (Ctrl-c and the such)" | |
| sleep 2 #but why? | |
| uuid=$(date +%Y-%m-%d-%H-%M-%S) | |
| dir=~/Sites/ayv-deploy-$uuid | |
| mkdir $dir | |
| cd $dir | |
| git clone --depth 1 git@github.com:coverall/youthvoices.adobe.com.git | |
| cd youthvoices.adobe.com | |
| git checkout soup | |
| rake deploy:staging | |
| cd ../../ | |
| rm -rf $dir | |
| cd $old_dir | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
uuid=
uuidgenThe only problem with creating a new clone each time is that you'll have to do bundle install in order to do rake deploy:staging.