gpt4 book ai didi

ruby-on-rails - Rails- Heroku 请安装 postgresql 适配器 : gem install activerecord-postgresql-adapter

转载 作者:行者123 更新时间:2023-11-29 13:31:22 26 4
gpt4 key购买 nike

<分区>

请帮我解决我的问题我已经阅读了这里的所有主题,但仍然无法理解发生了什么

所以我运行 git push heroku master

这是我得到的

rake aborted!
Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.)

之后我更新了我的 Gemfile,就在这里

ruby '1.9.3'
source 'https://rubygems.org'

gem 'rails', '3.2.13'
gem 'mysql2'
gem 'pg'

group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'therubyracer', :platform => :ruby
end

gem 'less-rails', '~> 2.2.6'
gem 'sass-rails', '~> 3.2.3'
gem 'twitter-bootstrap-rails', '2.2.4'

gem 'jquery-rails'
gem 'devise'
gem 'haml', '~> 4.0.0'
gem 'haml-rails'
gem 'cancan'
gem 'rails-i18n', '~> 3.0.0.pre'
gem 'i18n-js', :github => 'fnando/i18n-js'
gem 'obscenity'
gem 'thin'
gem 'will_paginate-bootstrap'
gem 'nifty-generators', :group => :development
gem 'rails_12factor'
gem 'mocha', :group => :test

之后 bundle install 显示错误

这里是 config/database.yml

production:
adapter: mysql2
host: 127.0.0.1
encoding: utf8
reconnect: false
database: xxx_production
pool: 5
username: root
password: "xxxx"
socket: /var/run/mysqld/mysqld.sock
development:
adapter: mysql2
host: localhost
encoding: utf8
reconnect: false
database: xxx_development
pool: 5
username: root
password: "xxxx"
socket: /var/run/mysqld/mysqld.sock

test:
adapter: mysql2
host: localhost
encoding: utf8
reconnect: false
database: xxx_test
pool: 5
username: root
password: "xxxx"
socket: /var/run/mysqld/mysqld.sock

你们有什么想法吗?

提前致谢!

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com