2

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

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

Something went wrong while loading config.ru

NameError: uninitialized constant Object::DataMapper
4

1 回答 1

2

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

更新 gemfile 后,再做一次bundle install

更新:

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

于 2012-06-11T11:22:25.360 回答