ruby - Rails Whenever set environment -
i'm using whenever generate cronjobs rails application. rails 4.2.1
in schedule.rb have that:
every 13.minutes rake "crons:dosomething" end
this generates cronjoblike this:
rails_env=production bundle exec rake crons:dosomething
problem 1 runs cronjobs production environment ... need cronjob in test , development
i tried this:
every 13.minutes rake "crons:dosomething", :environment => :development rake "crons:dosomething", :environment => :test rake "crons:dosomething", :environment => :production end
problem here second rake runs before first 1 finished there solution problem?
Comments
Post a Comment