1
我正在構建一個不使用任何數據庫的rails 4應用程序。我已經成功地通過以下幾個導遊刪除的database.yml與Rails 4 Unicorn Serve App Without ActiveRecord
require "action_controller/railtie"
require "action_mailer/railtie"
require "rails/test_unit/railtie"
require "sprockets/railtie"
它的工作原理,但局部更換
require 'rails/all'
禁用ActiveRecord的我的開發機器上網上,當我嘗試將它部署在服務器上運行麒麟,我得到這個在ERR日誌
ERROR -- : ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)
/home/rtb/shared/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:546:in `retrieve_connection'
應用程序工作正常生產麒麟服務器上,當我有一個database.yml的和ActiveRecord的實現d。有什麼我失蹤?
能否請您粘貼完整的堆棧跟蹤? – DNNX