部署 passenger 会调用 WEBrick?

yu3h40 · January 21, 2015 · Last by chenge replied at January 21, 2015 · 2285 hits

又折腾了一宿...没成果 按照正常的步骤设置好 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

config.ru

require './test' run Test. 难道是我 config.ru 的配置问题么..

rails 会选择启动一个服务器吧。是不是你把 rails 搞糊涂了。

我也有个问题,php 里为何没有 webrick 这个,也没听说 php 有很多的服务器。

You need to Sign in before reply, if you don't have an account, please Sign up first.