CapistranoでデプロイされるRails3.2.3アプリケーションがあります。これまで、このワークフローは数か月間完全に機能していました。ただし、最新の変更が最後にデプロイされてからrake db:migrate、SQLite3 gemとアダプターが見つからないため、アクションがハングします。
executing "cd /home/*/*/*/releases/20120425232058 && bundle exec rake RAILS_ENV=production  db:migrate"
executing command
rake aborted!
Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.)
問題は、アプリケーションがMySQLで実行されているということです。私のGemfileには次のようなものがあります。
source 'https://rubygems.org'
gem 'rails', '3.2.3'
gem 'jquery-rails'
gem 'omniauth-openid'
gem 'will_paginate'
gem 'pusher'
gem 'carrierwave'
gem 'capistrano'
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
end
group :development, :production do
  gem 'mysql2'
end
group :production do
  gem 'unicorn'
end
およびdatabase.ymlファイル:
development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: *****_development
  pool: 5
  username: *****
  password: *****
  host: localhost
production:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: *****_production
  pool: 5
  username: *****
  password: *****
  host: localhost
アプリケーションは、ローカルマシンの本番モードで問題なく実行されます。
RailsがSQLiteをインストールしようとしているのはなぜですか?