Ошибка при создании базы данных mysql в процессе производства

Я пытаюсь запустить команду

rake db:setup RAILS_ENV="production"

Но это приводит к следующей ошибке:

DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:mysql) instead. (called from call at /home/huzefa/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240)
rake aborted!
ActiveRecord::AdapterNotSpecified: 'mysql' database is not configured. Available: ["default", "development", "test", "production", "adapter", "encoding", "reconnect", "database", "pool", "username", "password", "host"]
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:248:in `resolve_symbol_connection'
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:231:in `resolve_string_connection'
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:213:in `resolve_connection'
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:139:in `resolve'
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:151:in `block in resolve_all'
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:150:in `each'
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:150:in `resolve_all'
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:69:in `resolve'
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/core.rb:46:in `configurations='
/home/huzefa/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.4/lib/active_record/railties/databases.rake:5:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config

Мой файл database.yml выглядит так:

[ f3]

Что здесь отсутствует, что не позволяет мне настроить базу данных mysql в производстве здесь? , пожалуйста, если бы кто-нибудь мог мне помочь, это было бы очень необходимо. Спасибо:)

1
задан 17 November 2015 в 10:56

0 ответов

Другие вопросы по тегам:

Похожие вопросы: