当我在我的Rails应用程序目录中运行bundle install
,捆扎机将安装仅是生产组中的宝石(如Heroku的或PG)。当我在本地运行轨道服务器,它也试图寻找一个ActiveRecord-TCP适配器具有零个结果在谷歌:Rails环境看起来像它坚持生产,甚至在开发环境
/Users/atestu/.rvm/gems/[email protected]/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require': Please install the tcp adapter: `gem install activerecord-tcp-adapter` (cannot load such file -- active_record/connection_adapters/tcp_adapter) (LoadError)
我想这宝石与Heroku的生产环境,但我RAILS_ENV变量空。当我将其设置为development
或运行rails s -e development
时,我会得到完全相同的问题。
我该如何深入研究这个问题?
编辑:这是我的Gemfile
:
source 'http://rubygems.org'
gem 'rails', '3.2.1'
gem 'json'
gem 'jquery-rails'
gem 'authlogic'
gem 'acts-as-taggable-on'
gem 'rpx_now'
gem 'hominid'
gem 'ruby-tmdb'
gem 'memcached'
gem 'aws-s3'
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
gem 'uglifier'
end
group :production do
gem 'heroku'
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
gem 'taps'
end
这里是我的database.yml
文件:
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
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
请发表您的'Gemfile'。 – jdl 2012-03-10 00:58:49
请同时发布您的database.yml文件 – 2012-03-10 03:27:59
这很奇怪,你确定这是你的** database.yml **文件吗?它看起来很像您的应用程序中的某个地方,您要求使用** tcp **适配器进行连接。 – 2012-03-10 12:05:34