Google Groups

setting Ramaze.options.mode

Roy Wright Mar 10, 2012 12:38 PM
Posted in group: Ramaze

What's your preferred method for setting Ramaze.options.mode for the
different runtime environments?

Basically the issue I'm looking at is using different database
connections for :dev, :live, and :test (also used for defining
middleware).  I'm wanting to select the connection in app.rb before
requiring my models.  The Ramaze.options.mode defaults to :dev.  I can
set it to :test in my spec/spec_helper.rb and features/support/env.rb
before requiring app.rb.  But how should I handle live deployments?