MySQL-Rails4部署ActiveRecord :: AdapterNotSpecified
作者:互联网
我的部署运行良好,直到迁移..失败
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登台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
为什么找不到适配器?
解决方法:
忘了我正在运行上限登台….并且在database.yml中没有登台db
标签:ruby-on-rails-4,migration,capistrano,mysql 来源: https://codeday.me/bug/20191121/2055595.html