hle*_*one 12 ruby heroku sinatra
我正在尝试使用bamboo-mri-1.9.2堆栈运行我的Heroku应用程序.当然它在Ruby 1.9.2上运行良好.但是在生产时它会在执行启动时崩溃config.ru,如下所示:
require 'sinatratestapp'
run Sinatra::Application
Run Code Online (Sandbox Code Playgroud)
我的.gems档案:
sinatra --version '>= 1.0'
Run Code Online (Sandbox Code Playgroud)
而应用程序本身如下sinatratestapp.rb:
require 'rubygems'
require 'sinatra'
get '/' do
"Hello from Sinatra on Heroku!"
end
Run Code Online (Sandbox Code Playgroud)
这就是我在项目中的所有内容并尝试在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.
Run Code Online (Sandbox Code Playgroud)
我试图按照它的指导做,但作为一个Ruby noob,我的考试没有任何结果.
| 归档时间: |
|
| 查看次数: |
9351 次 |
| 最近记录: |