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'
)
精彩评论