sshingler/capistrano-resque — pull request #15 by maxd (2012-08-20 14:09:52+00:00)
Title: Set correct RAILS_ENV value if capistrano using multistage

Hi,

If Capistrano use multistage extnsion you gem set RAILS_ENV to 'production' always. Looks like in multistage environment when you set :app_env variable, the :rails_env variable is undefined yet and it cause exception and you set 'production' string by default).

Thanks

About multistage:
http://weblog.jamisbuck.org/2007/7/23/capistrano-multistage
http://paulschreiber.com/blog/2011/02/12/howto-setup-multistage-deployment-with-capistrano/ (I use similar solution i.e. configure rails_env variable in deploy/(staging|production).rb files)