Skip to content

Instantly share code, notes, and snippets.

@brianp
Created May 24, 2012 22:06
Show Gist options
  • Select an option

  • Save brianp/2784479 to your computer and use it in GitHub Desktop.

Select an option

Save brianp/2784479 to your computer and use it in GitHub Desktop.
serve it up for everyone
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
}
@pgib
Copy link
Copy Markdown

pgib commented May 24, 2012

uuid=uuidgen

The 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.

@brianp
Copy link
Copy Markdown
Author

brianp commented May 24, 2012

uuidgen I like it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment