Skip to content

Instantly share code, notes, and snippets.

@jcf
Created January 31, 2012 13:50
Show Gist options
  • Save jcf/1710587 to your computer and use it in GitHub Desktop.
Save jcf/1710587 to your computer and use it in GitHub Desktop.
start() {
set -e
if [ $# -ne 1 ]; then
echo "You need to supply a queue number. Usage: start queue-number"
else
cd ~/Code/broadcast
export RAILS_ENV=production
export QUEUE=support"$1"
git pull --rebase origin master
rake broadcast:work
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment