Ruby Rails管理帮助
我在推heroku,一切似乎都很顺利,直到我转到url。我在url处遇到此错误:Ruby Rails管理帮助,ruby,ruby-on-rails-3,git,rubygems,heroku,Ruby,Ruby On Rails 3,Git,Rubygems,Heroku,我在推heroku,一切似乎都很顺利,直到我转到url。我在url处遇到此错误: Application Error An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details. 这是我做heroku日志时日志中的内容
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
这是我做heroku日志时日志中的内容
将您的postgres gem添加到您的gem文件中 您的错误: 请安装postgresql适配器:gem安装activerecord postgresql适配器pg不是捆绑包的一部分。将其添加到文件中。运行时错误
原因写在日志上:您应该添加以下内容
gem 'activerecord-postgresql-adapter'
到Gemfile,然后运行捆绑安装,然后提交并推送到heroku以下两个资源:
Gemfile
Gemfile.lock
gem 'activerecord-postgresql-adapter'