【发布时间】:2014-03-26 18:46:47
【问题描述】:
我的部署运行良好,直到迁移..失败
rake aborted!
DEBUG [874287b0] ActiveRecord::AdapterNotSpecified: database configuration does not specify adapter
DEBUG [874287b0] /home/kadoudal/rails/swim-tech.eu/site/swimtech/shared/bundle/ruby/2.1.0/gems/activerecord-4.0.3/lib/active_record/connection_adapters/connection_specification.rb:52:in `resolve_hash_connection'
我运行:cap staging deploy:check:linked_files,成功,database.yml 符号链接正确并包含:
# encoding: utf-8
defaults: &defaults
adapter: mysql2
host: localhost
timeout: 60000
encoding: utf8
production:
<<: *defaults
database: mydb_production
username: xxxxxxxxxxx
password: xxxxxxxxxxxxxx
为什么找不到适配器?
【问题讨论】:
标签: mysql ruby-on-rails-4 migration capistrano