This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Automatically Detecting Environment
You can probably accomplish this by setting the environment variable on the fly. See Setting variables on the fly. Otherwise, the technique below might be useful.
If you maintain a multistage deployment you may find it helpful to set the environement automatically based on the filepath.
For example:
if File.expand_path(__FILE__) =~ /staging/
set :environment, :staging
end
or
set :environment, Rails.env
In this case it would explicitely set the environment to :staging or default to :production.







