Script/console in development mode?

is it script/console in development mode or production mode ?

On 16 Jan 2008, at 09:25, Pokkai D. wrote:

is it script/console in development mode or production mode ?

script/console works out what environment to use in the same way as
everything else, so by default, script/console will run in development
mode (as would script/server). But if the RAILS_ENV environment
variable is set it will inherit that (or if you pass -e)

Fred

On Jan 16, 2008, at 4:44 AM, Frederick C. wrote:

On 16 Jan 2008, at 09:25, Pokkai D. wrote:

is it script/console in development mode or production mode ?

script/console works out what environment to use in the same way as
everything else, so by default, script/console will run in development
mode (as would script/server). But if the RAILS_ENV environment
variable is set it will inherit that (or if you pass -e)

Fred

There’s no -e on script/console

script/console production

or to force development mode:

script/console development

You can always ask the script for help:

$ script/console -h
Usage: console [environment] [options]
-s, --sandbox Rollback database modifications
on exit.
–irb=[irb] Invoke a different irb.

-Rob

Rob B. http://agileconsultingllc.com
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs