hi all, i finished my ror application in development mode.now i want to change the mode to "test" and "production".how to do it.how to change my application to "test" and "production" modes. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
gundestrup-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Apr-18 10:35 UTC
Re: how to change mode
Change the envirument.rb file, to enable production mode. (remove the comment out of ENV production line) Please note when running migrtation, you need to use: rake db:migrate RAILS_ENV="production" (for usage of the correct database) regards svend On Apr 18, 11:49 am, Karthikragunath Bhavani <rails-mailing- l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> hi all, > > i finished my ror application in development mode.now i want > to change the mode to "test" and "production".how to do it.how to change > my application to "test" and "production" modes. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Karthikragunath Bhavani wrote:> i finished my ror application in development mode.now i want > to change the mode to "test" and "production".how to do it.how to change > my application to "test" and "production" modes.You should have written unit tests for your app, as you developed it. ''rake test'' runs in test mode, and it depends on the test: key in your database.yml file, and your config/environments/test.rb file. Run your server in development mode with one of these: RAILS_ENV=production script/server script/server -e production -- Phlip --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---