PLEASE NOTE: the previous version of this wiki page contained misleading information about the :app_env variable, due to a bug with how it was used. This is being addressed by pull request #70. The issue is that capistrano loads default configuration and then executes your staging task and overrides previously defined variables. The default environment before executing stage task is set to :produc