Forum: Ruby on Rails how do I set my database to production ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
71477e5162d702dae2a072d66a855fec?d=identicon&s=25 (Guest)
on 2007-06-14 04:24
(Received via mailing list)
I know how to set the paswords and database names in database.yml,
but I haven't found in my book
where do I set rails to use the production database ? What will be
different once I do that ?
Is prod more secure and there is less logging ? It allways uses the
dev database at the moment.
B01fdd12039d82427a4af02360ef5571?d=identicon&s=25 cammo (Guest)
on 2007-06-14 05:29
(Received via mailing list)
When you start your server use a -e production i.e.

ruby script/server -e production


On Jun 14, 12:23 pm, "" <>
71477e5162d702dae2a072d66a855fec?d=identicon&s=25 (Guest)
on 2007-06-14 11:14
(Received via mailing list)
I have a site, I never start the server there. I'm
not sure how I would do it and I don't recall seeing it in their docs.
I figured I must have read something on this and forgotten it, but the
method you mention I don't ever recall reading and I have a whole
bunch of books ...
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2007-06-14 11:24
(Received via mailing list)
Hi, you'll need to do the following:

1)  uncomment the following in <path_to_rails_app>/config/environment.rb

     ENV['RAILS_ENV'] ||= 'production'

2)  set the required fields in your

Good luck,

This topic is locked and can not be replied to.