문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top