application error

12 views
Skip to first unread message

kinoe -

unread,
Oct 30, 2016, 10:16:14 PM10/30/16
to Ruby on Rails: Talk

how deploy to heroku,i was make app with db postgresql(3 tabels) on local.
1.push (succes)
2.heroku run rake db:migrate (succes)
3.i click 'open app' on dashboard heroku show message appliaction error
4.i open logs on dashborad like this error H10 screenshot:

Chirag Jain

unread,
Oct 31, 2016, 4:54:06 AM10/31/16
to Ruby on Rails: Talk
Try to launch your app locally in production mode

kinoe -

unread,
Oct 31, 2016, 9:27:09 PM10/31/16
to Ruby on Rails: Talk

run rails -e production

error like this:


Internal Server Error

Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml`

Chirag Jain

unread,
Nov 1, 2016, 4:25:10 AM11/1/16
to Ruby on Rails: Talk
Basically when you run on heroku by the default the mode is production

so you need to match your development config with production

remember not every config value needs to be the same

specially the one mentioned out here - secret_key_base
Reply all
Reply to author
Forward
Message has been deleted
0 new messages