On 18 April 2011 17:12, amrit pal pathak <amritpalpath...@gmail.com> wrote: > > > On Apr 18, 9:07 am, Colin Law <clan...@googlemail.com> wrote: >> On 18 April 2011 10:00, amrit pal pathak <amritpalpath...@gmail.com> wrote: >> >> > ... >> > it will be created as rake db:create (after specifying in the >> > production enviornment i,e database: production)?? and to >> >> start the server in production mode. >> >> To create the production database >> RAILS_ENV=production rake db:migrate > Please tell me in which to specity RAILS_ENV=production.I > didnt > find it in enviornment.rb file
You just run the command RAILS_ENV=production rake db:create (note, I made a mistake before, it is db:create not db:migrate) That sets the environment variable RAILS_ENV to production and runs rake, then rake db:create checks RAILS_ENV so it knows which section to use from database.yml and which file to use from config/environments. As I pointed out previously did you try googling for rails create production database before asking here? Colin -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.