所以我试图在Heroku上部署我的网络应用程序,但我一直收到这些错误:
app/vendor/bundle/ruby/2.1.0/gems/dm-core-1.2.1/lib/dm-core/adapters.rb:163:in require': cannot load such file -- dm-sqlite-adapter (LoadError)
from /app/vendor/bundle/ruby/2.1.0/gems/dm-core-1.2.1/lib/dm-core/adapters.rb:163:in load_adapter'
from /app/vendor/bundle/ruby/2.1.0/gems/dm-core-1.2.1/lib/dm-core/adapters.rb:133:in adapter_class'
from /app/vendor/bundle/ruby/2.1.0/gems/dm-core-1.2.1/lib/dm-core/adapters.rb:13:in new'
from /app/vendor/bundle/ruby/2.1.0/gems/dm-core-1.2.1/lib/dm-core.rb:230:in setup'
from /app/index.rb:13:in <top (required)>'
from /app/config.ru:1:in require'
from /app/config.ru:1:in block in <main>'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in instance_eval'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in initialize'
from /app/config.ru:in new'
from /app/config.ru:in <main>'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in eval'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in new_from_string'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in parse_file'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:299:in build_app_and_options_from_config'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:208:in app'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:336:in wrapped_app'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:147:in start'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:272:in start'
from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/bin/rackup:4:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/bin/rackup:23:in load'from /app/vendor/bundle/ruby/2.1.0/bin/rackup:23:in `<main>'
我知道Heroku不能使用sqlite,这就是我按照建议切换到postgresql的原因。但这只会让我更加怪异,因为我甚至没有使用sqlite。 :S
建议?
答案 0 :(得分:0)
我认为dm-sqlite-adapter
来自您的Gemfile
,或者来自代码中的其他位置,可能是您配置数据映射器的地方。或者也许它是数据映射器YAML配置中的引用,如果你有一个。