【问题标题】:Sinatra config.ru loaderrorSinatra config.ru 加载错误
【发布时间】:2012-06-13 16:11:38
【问题描述】:

在长时间的中断之后,我想看看 Sinatra,所以我寻找了一个样板来让它在 heroku 上快速运行并找到了这个 >https://github.com/froots/sinatra-heroku-boilerplate

它似乎有我需要的一切,所以我做了 bundle install,但每当我启动 shotgun 时,我都会遇到这个错误:

Something went wrong while loading config.ru

NameError: uninitialized constant Object::DataMapper

【问题讨论】:

    标签: heroku sinatra datamapper


    【解决方案1】:

    在 Gemfile 的第 5 行 - 它应该是 gem 'data_mapper',而不是 gem "datamapper", ">=1.1.0"

    更新 gemfile 后,再执行一次 bundle install

    更新:

    我已经提交了一个请求作者来修复他的代码:https://github.com/froots/sinatra-heroku-boilerplate/pull/2

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-21
      • 1970-01-01
      • 1970-01-01
      • 2013-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多