我阅读 Rails 教程并创建了一个 Sample_App。
我的代码在这里可用:https ://github.com/namic/sample_app
Heroku 在这里运行应用程序:http: //afternoon-mist-7865.herokuapp.com/
它可以在我的笔记本电脑上的测试、开发和生产环境中使用,但 Heroku 用“我们很抱歉,但出了点问题”否认了我的喜悦。
有什么建议么?
解决方案:添加到 Gemfile: group :production do gem 'pg' end
如果您不想在本地使用 postgresql,请记住在没有生产的情况下运行 bundle install: bundle install --without production