This question will probably only make sense if you know about the whenever gem for creating cron jobs. I have a task in my schedule.rb like
every 1.day, :at =&g
Whenever doesn't detect your environment, it just defaults to using production. You can set the environment for all jobs using set:
set :environment, 'staging'
Or per job:
every 2.hours do runner 'My.runner', :environment => 'staging' end