Can I use Production mode but with Dev type characteristics?

Hi,

I have a local development environment and remote production
environment, however I am really just learning/playing, hence I would
like to be able to define these environments separately in the config
files, however…

I would like my production environment to really act in a development
mode fashion at the moment (i.e. sense updates I make without any need
to restart things etc).

Is this possible? i.e. I guess I am assuming that the environment
setting in environment.rb of PRODUCTION both (a) points to the prod
database settings but also (b) implies the production characteristics(?)

Thanks

On Tue, Jul 25, 2006 at 11:59:44AM +0200, Greg H. wrote:

I have a local development environment and remote production
environment, however I am really just learning/playing, hence I would
like to be able to define these environments separately in the config
files, however…

I would like my production environment to really act in a development
mode fashion at the moment (i.e. sense updates I make without any need
to restart things etc).

You can always duplicate the various configuration parameters you want
out
of config/environments/development.rb into …/production.rb. You could
also create a new environment, maybe call it “pseudoprod”, which has the
desired mix of settings – just create a new stanza is
config/database.yml,
and a new file in config/environments. You can then leave your
development
and production environments alone (which is good from a
principle-of-least-surprise perspective).

  • Matt

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