[Rails] Rails examples

3kru-hpyd at spamex.com 3kru-hpyd at spamex.com
Fri Nov 26 02:20:59 GMT 2004


I run Webrick in "cached mode" (I forget the exact name, I don't have
it in front of me) which runs very fast for me (on Windows XP and
Windows Server 2003). The only problem is that you have to kill
Webrick every time you change the code (I kill the process because
Ctrl-C/Ctrl-Break doesn't work). I actually prefer the extra step of
having to stop and start Webrick because I get so much greater speed.
If you run Webrick in its normal mode, it has to load up an instance
of Ruby every time you do something in your web app (click a link,
click a button, etc).

I also have Webrick (my personal wiki on Instiki) running as a service
using FireDaemon, so you can just click the restart button on the
service or use a single batch file to stop and start the service every
time you want to change the code.

I haven't tried to get FastCGI running yet (again, on Windows), but I
had enough problems just getting normal CGI running (this was before
Tobias' tutorial) and since Webrick performs so well, I've had no
reason so far. And Apache CGI is as slow as Webrick in non-cached mode
(at least for me) -- it basically has to fire up a new Ruby every
time.

I will, however, be checking to see if i am NOT using rubyw. I thought
when you invoked "ruby" on Windows you were actually running a batch
file that runs rubyw.exe, but I'll have to check.

My $0.0279 NZD


--John

On Fri, 26 Nov 2004 12:13:40 +1100, Gavin Sinclair
<gsinclair at soyabean.com.au> wrote:
> * Replies will be sent through Spamex to rails at lists.rubyonrails.org
> * For additional info click -> http://www.spamex.com/i/?v=4990968
> 
> On Friday, November 26, 2004, 6:18:27 AM, Tobias wrote:
> 
> > Make sure you guys use rubyw.exe from the ruby win distribution and
> > not ruby.exe. ruby.exe is notoriously slow.
> 
> > The next release of rails will make development enviroments run a
> > couple orders of magnitude faster since you will be able to develop
> > using fastcgi and webrick got some major changes so it actually
> > performs a lot faster than current apache /cgi mode.
> 
> Can you explain the changes that are being made?  How can FastCGI be a
> development environment?  How can Webrick be made to go faster?  Just
> for interest's sake.
> 
> Gavin
> 
> 
> 
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


More information about the Rails mailing list