newbie: stuck at deploying whenever via cap


im trying to deploy whenver + multistaging via cap: this is my task run "cd #{release_path} && whenever --set environment=#{rails_env} --update-crontab #{application}_#{rails_env}"

1)why i do append rails_env to --update-crontab? because i would like to have 2 sets of cronjobs, one for each stage (staging & production). problem is that a deploy (eg proeduction) generates 2 sets of jobs, which have the identifier: - applicationname - applicationname_production

why is this?

2) if im doing simething fundamental wring here, pls enlight me

could anyone pls shed osme light on this? thx

this is rails 2.3.x