search for: deliver_report_daily

Displaying 1 result from an estimated 1 matches for "deliver_report_daily".

2009 Jul 31
6
Background daemon
...############ #!/usr/bin/env ruby # You might want to change this ENV["RAILS_ENV"] ||= "production" require File.dirname(__FILE__) + "/../../config/environment" $running = true Signal.trap("TERM") do $running = false end while($running) do Notifier.deliver_report_daily #ActiveRecord::Base.logger.info "This daemon is still running at #{Time.now}.\n" sleep 86400 end ########### # deploy.rb ############ desc "Stop daemons before deploying" task :before_deploy do run "#{current_path}/script/daemons stop" end desc "Start...