Created
August 24, 2009 15:14
-
-
Save jlindley/173925 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
#!/bin/bash | |
cd /var/apps/buffarumble/current | |
export RAILS_ENV=production | |
/usr/bin/ruby -r'config/environment.rb' \ | |
-e 'puts RAILS_ENV' \ | |
-e 'puts "Events undelivered before: #{Event.undelivered.count}"' \ | |
-e 'Event.undelivered.map(&:dispatch!)' \ | |
-e 'puts "Events undelivered after: #{Event.undelivered.count}";0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment