开发者

Which dispatch.fcgi provides the same behaviour as "rackup"

I have a 开发者_如何学编程ruby rack application that I would like to manage behind FCGI.

What should I put inside the dispatch.fcgi file so the executed application matches/uses the content of config.ru ?

I would like the application launched by fcgi to be identical to the one launched when running rackup.

Thanks for your answers.


You can put the following at the bottom of a dispatch.fcgi script to start a fastCGI server based on a config.ru just like rackup would:

Rack::Server.start(
                   :config => 'config.ru',
                   :server => 'fastcgi'
                   )
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜