diff --git a/script/task-notifier b/script/task-notifier index cf5833d..2009c1f 100755 --- a/script/task-notifier +++ b/script/task-notifier @@ -1,6 +1,8 @@ #!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/environment' +# when in production set RAILS_ENV to 'production' + Person.with_pending_tasks.each do |p| PendingTaskNotifier.deliver_notification(p) RAILS_DEFAULT_LOGGER.info('deliver notification for ' + p.identifier) -- libgit2 0.21.2