0
的FreeBSD 9.2 的Apache 2.4 +客運 嘗試啓動管理平臺2.3.2管理平臺無法啓動,日誌說的ActiveRecord :: AdapterNotSpecified,其他一些似有
錯誤:
/usr/local/lib/ruby/gems/1.9/gems/activerecord-3.2.13/lib/active_record
/connection_adapters/abstract/connection_specification.rb:47:in
`resolve_hash_connection': database configuration does not specify
adapter (ActiveRecord::AdapterNotSpecified)
我發現,如果我更改適配器從adapter: mysql2
到adapter:mysql2
(後刪除空間「:」),那麼這個錯誤了,但後來我有另一個錯誤:
/usr/local/lib/ruby/gems/1.9/gems/bundler-1.3.5/lib/bundler/dsl.rb:33:in
`rescue in eval_gemfile': Gemfile syntax error:
(Bundler::GemfileError)
所以我必須讓它工作,當配置adapter: mysql2
,所以我必須解決ActiveRecord :: AdapterNotSpecified錯誤的問題,而不是通過刪除那裏的空間。
任何想法?
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.25
- RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [amd64-freebsd9]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9
- RUBY EXECUTABLE: /usr/local/bin/ruby19
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- amd64-freebsd-9
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.9
- /root/.gem/ruby/1.9
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
我發現它試圖從部分開發而不是生產獲取適配器。開發部分在我的配置文件中進行了評論。但爲什麼它試圖從那裏獲得連接?我不明白如何說從生產部門採取。我知道環境,但我不瞭解基本的東西 - 如何配置從瀏覽器啓動redmine的生產環境(對於cgi腳本)? – user2692911