Created
January 31, 2012 13:50
-
-
Save jcf/1710587 to your computer and use it in GitHub Desktop.
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
| 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