Saturday, September 25, 2010

Re: [Rails] Adding a new RAILS_ENV (== Rails.env)

Sent from my iPhone

On Sep 25, 2010, at 5:43 PM, Pito Salas <lists@ruby-forum.com> 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

>
> Thanks much!
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate