【发布时间】:2011-04-27 19:00:18
【问题描述】:
我正在尝试让我的 Heroku 应用程序使用 bamboo-mri-1.9.2 堆栈运行。当然,它在 Ruby 1.9.2 上本地运行良好。但是在生产时,它会在启动时崩溃,并执行config.ru,如下所示:
require 'sinatratestapp'
run Sinatra::Application
我的.gems 文件:
sinatra --version '>= 1.0'
应用程序本身为sinatratestapp.rb:
require 'rubygems'
require 'sinatra'
get '/' do
"Hello from Sinatra on Heroku!"
end
这就是我在项目中的全部内容,并尝试在 Heroku 结果上运行它:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- sinatratestapp (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from config.ru:1:in `block (3 levels) in <main>'
...
-----> Your application is requiring a file that it can't find.
Most often this is due to missing gems, or it could be that you failed
to commit the file to your repo. See http://docs.heroku.com/gems for
more information on managing gems.
Examine the backtrace above this message to debug.
我尝试按照它的指导去做,但作为一个 Ruby 菜鸟,我的考试没有结果。
【问题讨论】:
-
我能够重复这个问题。我建议向 Heroku 发送支持请求。