Forum: Ruby on Rails webrick and scgi

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
snacktime (Guest)
on 2005-11-12 12:49
(Received via mailing list)
I know this might sound strange at first, but how difficult would it be
to
write a plugin or module so webrick could run rails apps via scgi? While
webrick seems to do great on it's own, in my experience it's been fairly
unstable with rails. it consistantly dies on Freebsd under seemingly
random
conditions and fairly light load, and I've tried 4 different freebsd
servers
using 4.11 and 5.4. The same apps running under apache/lighttpd with
fastcgi
or scgi work fine.

Where I work we have one product and another coming up based on rails.
We
use them to provide a hosted service, but would also like to offer a
distribution that clients can install on their own. The options are
growing
on a day to day basis, but so far I have not been able to find a
solution
that will let an end user install a rails app without having to go
through
considerable pain configuring apache with fastcgi or scgi. If webrick
supported scgi then that would be another option for distributing rails
apps
that you can just unzip and run with the help of a couple included
scripts.

How much work would this be? The scgi protocol seems simple enough, but
I
really have no idea how much work it would be to write an scgi handler
for
webrick.

Chris
brett.a.rogers (Guest)
on 2005-11-12 12:49
(Received via mailing list)
How feasible is using InstantRails for distribution?

http://instantrails.rubyforge.org/wiki/wiki.pl

It seems to be stable and is extremely easy to setup.

Regards
Brett
curt.hibbs (Guest)
on 2005-11-12 12:49
(Received via mailing list)
On 11/9/05, Brett Rogers <brett.a.rogers@gmail.com> wrote:
> How feasible is using InstantRails for distribution?
>
>  http://instantrails.rubyforge.org/wiki/wiki.pl
>
> It seems to be stable and is extremely easy to setup.

I plan to use Instant Rails in medium to low volume production sights.

Curt
brett.a.rogers (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Curt, Instant Rails is awesome. What I should have written was How
feasible
would it for Chris to implement the project using Instant Rails.

Anyway, Thanks and keep up the great work!

Regards,
Brett
snacktime (Guest)
on 2005-11-12 12:49
(Received via mailing list)
as soon as it's not just windows only I think it will be great, but
right
now it's not something I can use.

Chris
curt.hibbs (Guest)
on 2005-11-12 12:49
(Received via mailing list)
On 11/9/05, snacktime <snacktime@gmail.com> wrote:
> as soon as it's not just windows only I think it will be great, but right
> now it's not something I can use.

Yeah... I wish it was cross platform already, too. If only the powers
that be would grant my request for 72 hour days!  :-)

Curt
snacktime (Guest)
on 2005-11-12 12:49
(Received via mailing list)
On 11/9/05, Curt Hibbs <curt.hibbs@gmail.com> wrote:
>
> On 11/9/05, snacktime <snacktime@gmail.com> wrote:
> > as soon as it's not just windows only I think it will be great, but
> right
> > now it's not something I can use.
>
> Yeah... I wish it was cross platform already, too. If only the powers
> that be would grant my request for 72 hour days! :-)
>
>
I wasn't complaining, merely stating the fact that since unix support is
mandatory we can't use instant rails at this point. I see that the
latest
rails will use lighttpd instead of webrick if available. That could
actually
solve all my issues. Just include a lighttpd binary and modify the path
so
that script/server picks up the lighttpd binary that comes with the
application.

Chris
This topic is locked and can not be replied to.