Thursday, August 27, 2009

using rails environment specific commands

It's for you only if are new to RoR, as you may get confused, Bcoz they all come in different shapes and sizes.

For mongrel/Else
mongrel_rails start -e production/ ruby script/server -e production

For rake command:
rake [task] RAILS_ENV=production

For ruby console:
ruby script/console production

No comments:

Post a Comment