开发者

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

开发者 https://www.devze.com 2023-02-08 22:42 出处:网络
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

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

精彩评论

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