Adding a new RAILS_ENV (== Rails.env)

Easy question: what’s the ‘official’ way to add a new RAILS_ENV, and
invoke it when running the server with script/server. Is there a best
practice?

Thanks much!

Sent from my iPhone

On Sep 25, 2010, at 5:43 PM, Pito S. [email protected] wrote:

Easy question: what’s the ‘official’ way to add a new RAILS_ENV, and
invoke it when running the server with script/server. Is there a best
practice?

Pito, I have always created a specialized environment within the
config/environments directory. For example, my-development.rb which
would get invoked as follows:

script/server -e my-development

Next, I would recommend reading the available docs locally as well as
online.

Good luck,

-Conrad

Conrad,

Thanks!

Pito