Featured post
deployment - deploy rails app on heroku -
hey i'm afraid should ask rookie question :
after push app heroku. got error of no database
this command use
heroku rake db:migrate
my app can run locally no problem, notice database file in development. , test evironment use rails server
, localhost:3000
anyone tell me how make database in production mode in heroku.
thanks
here's heroku log file:
here's logs
started "/drummers/1" 221.9.247.14 @ sat dec 18 06:17:40 -0800 2010 processing drummerscontroller#show html parameters: {"id"=>"1"} completed in 167ms
activerecord::recordnotfound (couldn't find drummer id=1): app/controllers/drummers_controller.rb:11:in `show'
i think may due datebase,config file, become use sqlite3 in local test, , migration file development prefix,
it's not telling you have no database.
it's telling can't find specific record
(couldn't find drummer id=1):
it's have code that's doing drummer.find(1)
, doesn't exist on production environment.
recommend either:
- create seeds file (heroku rake db:seed) rails cast
- push entire database heroku (heroku db:push) [make sure understand wipe out production database]
- Get link
- X
- Other Apps
Comments
Post a Comment