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.
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.
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 B. <rails-mailing-
Karthikragunath B. 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs