又折腾了一宿...没成果 按照正常的步骤设置好 passenger 和 apache 后.. 访问应用,很久以后出现
An error occurred while starting up the preloader: it did not write a startup response in time. Please read this article for more information about this problem.
Raw process output:
[2015-01-21 08:35:18] INFO WEBrick 1.3.1
[2015-01-21 08:35:18] INFO ruby 2.2.0 (2014-12-25) [x86_64-linux]
== Sinatra (v1.4.5) has taken the stage on 4567 for production with backup from WEBrick
[2015-01-21 08:35:18] INFO WEBrick::HTTPServer#start: pid=7508 port=4567
后来发现,在等待的这段时间中,访问 4567 端口,可以正常显示 但不知道是 passenger 与应用的通信问题还是什么.. 为什么会调用了 webrick
又测试了以下,模块下应用都会出现问题 一个最简单的
require 'sinatra/base'
class Test < Sinatra::Base
get '/' do
'hello world'
end
run!
end
config.ru
require './test' run Test. 难道是我 config.ru 的配置问题么..