Method: Earth.env
- Defined in:
- lib/earth.rb
.env ⇒ Object
The current environment. Earth detects the following environment variables:
-
EARTH_ENV (for CLI apps and daemons)
-
RAILS_ENV
-
RACK_ENV
Default is development
84 85 86 |
# File 'lib/earth.rb', line 84 def Earth.env @env ||= ActiveSupport::StringInquirer.new(ENV['EARTH_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development') end |