Rake task is not called in production mode for ruby on rails 3 -



Rake task is not called in production mode for ruby on rails 3 -

from controller:-

call_rake :parse_venue, :venue_list_id => venue_list.id def call_rake(task, options = {}) options[:rails_env] ||= rails.env args = options.map { |n, v| "#{n.to_s.upcase}='#{v}'" } scheme "rake #{task} #{args.join(' ')} --trace 2>&1 >> #{rails.root}/log/rake.log &" end

in development mode rake task triggered.. in case of production mode not triggered.

ps:- inspired rake in background, railscast. there nil in rake.log file in production mode

try next scheme call:

system "#{args.join(' ')} rake #{task} --trace 2>&1 >> #{rails.root}/log/rake.log &"

ruby-on-rails ruby-on-rails-3 rake

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -