Rails Tutorial Sample_App fails on Heroku
-
12-11-2019 - |
Вопрос
I reading Rails Tutorial and created a Sample_App.
My code is available here: https://github.com/namic/sample_app
Heroku is running the app here: http://afternoon-mist-7865.herokuapp.com/
It works in test, development and production environment on my laptop, but Heroku denies me the joy with "We're sorry, but something went wrong."
Any suggestions?
Solution: Add to Gemfile: group :production do gem 'pg' end
And remember to run bundle install without production, if you dont want postgresql local: bundle install --without production
Решение
Check the logs and make sure you ran the migrations on heroku.
heroku run rake db:migrate
Не связан с StackOverflow