As far I remember, Multistage recipe doesn't automatically update your environment.
You need to set it manually.
# in config/deploy/production.rb
set :rails_env, "production"
# in config/deploy/development.rb
set :rails_env, "development"
You can also set it dynamically, loading the value from current stage.
set :rails_env, fetch(:stage)
However, the second option requires :stage to be set before the value is assigned to :rails_env.
You need to configure your deploy script or use a lambda to postpone code evaluation.
-- Simone
--
Simone Carletti
Site & Blog:
http://www.simonecarletti.comEmail:
wep...@weppos.net
LinkedIn:
http://linkedin.com/in/wepposNick: weppos | Skype: weppos