February 2010
1 post
Running Resque / Rake Tasks with Monit
script/consumer: #!/usr/bin/env ruby def pidfile @pidfile ||= File.expand_path(File.join('..', '..', 'tmp', 'pids', 'consumer.pid'), __FILE__) end case ARGV.first when 'start' then require 'rubygems' require 'rake' ENV['QUEUE'] ||= '*' ENV['RAILS_ENV'] ||= 'production' load(File.expand_path(File.join('..', '..', 'Rakefile'), __FILE__)) ...
Feb 3rd