rails 3.2
在我的database.yml中,我有:
development: &default
adapter: mysql2
encoding: utf8
reconnect: false
database: mydb
pool: 5
username: 'mydb'
password: 'mypwd'
staging:
<<: *default
host: localhost
sandbox:
<<: *default
host: localhost
当我跑步时:
RAILS_ENV=sandbox
RAILS_GROUPS=assets
bundle exec rake assets:precompile
我得到以下内容:
rake aborted!
ActiveRecord::AdapterNotSpecified: database configuration does not specify adapter
如果我这样做:
RAILS_ENV=staging
RAILS_GROUPS=assets
bundle exec rake assets:precompile
正确完成。登台和沙箱设置是相同的。知道这里发生了什么吗?