我正在努力将我们的一个Rails 2.3.8应用程序升级到Rails 3,并且遇到了捆绑和部署的恼人问题.我在Windows机器上开发应用程序,但生产环境正在运行Ubuntu Linux.现在,我的问题是Bundler忽略了mysql生产环境中的gem,并且Passenger吐出:"!!!错过了mysql gem.将它添加到你的Gemfile:gem'mysql','2.8.1'"
这是我的Gemfile:
# Edit this Gemfile to bundle your application's dependencies.
# This preamble is the current preamble for Rails 3 apps; edit as needed.
source 'http://rubygems.org'
gem 'rails', '3.0.0'
gem 'net-ldap', :require => 'net/ldap'
gem 'highline', :require => 'highline/import'
gem 'mysql', '2.8.1'
gem 'net-ssh', :require => 'net/ssh'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake …Run Code Online (Sandbox Code Playgroud)