Specified 'postgresql' for database adapter,but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
请帮我解决这个问题.
group :production do gem 'pg' end
然后运行bundle install并尝试在Heroku上部署.
如果您想在所有环境中使用Postgresql,而不仅仅是在生产环境中(推荐),请在:production group之外添加gem,并删除其他数据库适配器,例如sqlite.
作为旁注,您可能还想按照Heroku的建议添加rails_12factor gem.
rails_12factor