- 我有 2 个环境:
development
和development_with_production_data
. 环境仅在其
database.yml
条目上有所不同:development: host: 127.0.0.1 adapter: mysql2 encoding: utf8 database: [REDACTED]_development username: root password: pool: 5 development_with_production_data: host: [REDACTED] port: [REDACTED] adapter: mysql2 encoding: utf8 database: [REDACTED]_production username: [REDACTED] password: [REDACTED] pool: 5
我已经验证我
[REDACTED]
上面的值是正确的值。我有一个可以很好地连接的 gui 和一个使用相同[REDACTED]
值连接的 rails 2 应用程序。- 在本地加载和处理
development
环境工作完美。 加载并在
development_with_production_data
环境中工作只会是静态的缓存页面。没有错误消息,没有超时,什么都没有。我所看到的只有这样:coneybeare $ rails s -e development_with_production_data NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex#all_gems called from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256 . => Booting WEBrick => Rails 3.0.7 application starting in development_with_production_data on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2011-05-09 01:23:48] INFO WEBrick 1.3.1 [2011-05-09 01:23:48] INFO ruby 1.8.7 (2009-06-12) [i686-darwin10] [2011-05-09 01:23:48] INFO WEBrick::HTTPServer#start: pid=3854 port=3000
我正在使用
rails 3.0.7
并尝试mysql2 0.3.2
过mysql2 0.2.7
这可能是什么原因造成的?