我正在使用 capistrano 并收到此错误消息:
Please install the pg adapter: `gem install activerecord-pg-adapter` (cannot load such file -- active_record/connection_adapters/pg_adapter)
我已经从我的 Gemfile 和bundle install
d 中删除了 gem 'pg'。我在 Gemfile.lock 中没有看到 pg gem。我还将生产数据库更改为 sqlite3 适配器。为什么 Rails 3.2 / Capistrano / Bundler 要求这个?我没有使用它,也没有在 Gemfile.lock 中,我该如何解决它?我在发生这种情况的服务器上使用 ubuntu 12.04。
提前谢谢
此外,当我运行它告诉我运行的内容时,我得到:
deploy@oahu:~$ gem install activerecord-pg-adapter
ERROR: Could not find a valid gem 'activerecord-pg-adapter' (>= 0) in any repository
^CERROR: Interrupted
deploy@oahu:~$ \
** 编辑 1 **
从应用程序的根目录
Fri Mar 22$ grep -ri 'pg-adapter' *
Fri Mar 22$
数据库.yml
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000
这是github上database.yml文件的截图: