Switching Ruby on Rails bases
2 answers
By default, when you do "ruby script / server" you will be working against the development database.
Every time you run tests, doing "rake test", "rake test: functionals", etc., Rails automatically loads whatever you have in your fixtures into the test database and uses it.
Whenever you deploy to production, if you are using Phusion Passenger (which you probably should), it will by default launch your application in production mode.
If you want to run your webrick server against one of the other databases, you can do:
> ruby script/server -e production
> ruby script/server -e test
+3
a source to share