Skip to content

Instantly share code, notes, and snippets.

@jlindley
Created August 24, 2009 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlindley/173925 to your computer and use it in GitHub Desktop.
Save jlindley/173925 to your computer and use it in GitHub Desktop.
#!/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