Topic: Start WEBrick server ??

Could you please tell me "how can we start WEBrick server automatically (without ruby script/server) when request to particular application?"

Thanks,
Suhas

Re: Start WEBrick server ??

You cannot do that*, server must listen on some port (must be already running) to accept request.

* you could run some web server which would recognize request, start webrick for this application and pass the request to this application (webrick). But I don't know if it is possible/already implemented.

The normal way is to just start web server with rails app and have it running all the time.

Re: Start WEBrick server ??

Why not just leave webrick running all the time?

vinnie - rails forum admin

Re: Start WEBrick server ??

You gould use CGI instead big_smile but its veeery slow.