Forum: Ruby on Rails Recommend server for developing RoR on win

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bojan M. (Guest)
on 2006-01-11 11:31
(Received via mailing list)
Hi all,
can you recommend me which web server config to use for developing rails
on windows machine. I tried webrick, which is good but it's annoying
because console window is in taskbar for every site running and it have
to be started manually. Apache with CGI is to slow and using FastCGI on
the other side brings me lot of problems, like randomly not working RoR
Any help is appreciated.


Bojan M.
Informatika Mihelac, Bojan M. s.p.  |
-> tools, scripts, tricks from our code lab:
Erik van Oosten (Guest)
on 2006-01-11 11:49
(Received via mailing list)
There are some great essays on the topic:


Bojan M. schreef:
Jan P. (Guest)
on 2006-01-11 11:55
(Received via mailing list)
Hi, Bojan,

give SCGI with Apache VirtualHosts a try. I'm runnning this on Server
2003 with good results. A search on or the
gmane archives of this mailing list would help.

Kevin O. (Guest)
on 2006-01-11 15:38
Instantrails 1.0 supports SCGI and Apache out of the box.  It works
pretty well, but you still get the console window for the SCGI server.

If you ask Curt nicely he might be able to setup InstantRails to use
rubyw.exe instead of ruby.exe to run the server scripts.  That would
hide the windows, but you would probably need to use the task manager to
kill the processes when you didn't need them anymore.

Bojan M. (Guest)
on 2006-01-11 17:46
(Received via mailing list)
Kevin O. wrote:
Thanks for both answers. I have already Apache and MySql installed with
bunch of apps and sites running so I would like to avoid double
processes. I am curently evaluating SCGI solution and would post here
how it is going. I would not like to learn working with any more apps if
it is not really needed - the Ruby and RoR are enough :)

Bojan M.
Informatika Mihelac, Bojan M. s.p.  |
-> tools, scripts, tricks from our code lab:
Bojan M. (Guest)
on 2006-01-11 18:24
(Received via mailing list)
Hi Jan.
Thanks for answer.
I tried with SCGI following instructions from*scgi*_*rails*/.
However when I start service, for I receive blank
page and scgi.log adds "[ERR][5456] Malformed request, does not end with
','". When config for Apache2 is added then the error is: Recognition
failed for "/" in routing.rb.

Did you have to change .htaccess or some other file in Rails application
directory? Any advice?

Marcelo Bello (Guest)
on 2006-01-11 21:01
(Received via mailing list)
Try RadRails!

It gives you not only a great development Interface (yes, it is an IDE)
also ways to start/stop as many webrick instances as you want (for one
more projects) and it also provides simpler ways to run generators,

Rubists don't like IDE's, but that is mostly prejudice. RadRails is a
IDE for Ruby.
You can do everything from the IDE: running generators, launching
browsing your app and dealing with CVS or SVN. For browsing I prefer
Firefox, though.


Marcelo Bello
Zed A. Shaw (Guest)
on 2006-01-12 02:05
(Received via mailing list)

Are you by chance running rails with SCGI on port 9999 and then trying
to access your application on port 9999 with your web browser directly?

If so then think for a few minutes.  Your browser understands HTTP
right?  SCGI is running on 9999.  SCGI is not HTTP.  Think.  What
happens when you tell your browser to go to port 9999?  Does it use
HTTP?  Probably.  Does SCGI understand HTTP?  Not at all.

Try going to the port your web server is on with your web browser.

Zed A. Shaw

On Wed, 11 Jan 2006 17:23:30 +0100
Bojan M. (Guest)
on 2006-01-12 12:44
(Received via mailing list)
Thanks for answer Zed. Yes, it was not very smart move, I was desperate
with "Routing Error \n Recognition failed for "/"" errors (and many
others I received in last days) so I tried talking to SCGI like its
WebRick server :)
This is my config in Apache2 (commented are commands for FCGI which I at
last get it working ok)
>     </LocationMatch>
>     #AddHandler cgi-script .cgi
>     #AddHandler fastcgi-script .fcgi
>   #</Directory>
> </VirtualHost>
and these is scgi.yaml in config folder
> ---
> :host:
> :password: yGaY8/ZiZcmsQ
> :port: 9999
> :logfile: log/scgi.log
> :config: config/scgi.yaml
> :control_url: druby://
> :disable_signals: true
> :env: development
Maybe you can see what's wrong there, it's seems everything is ok.

best regards,
Jan P. (Guest)
on 2006-01-12 13:39
(Received via mailing list)
Hi, Bojan,

looks not so bad indeed. Haven't used it for quite some time (using
webrick for development myself) but this is one configuration that
definitly has worked. Not much different. Would you try to take the
quotes of the DocumentRoot?


<VirtualHost *:8080>
    AddDefaultCharset utf-8
    DocumentRoot f:/home/jan/workspace/blauton/public/
    ErrorDocument 500 /500.html
    ErrorDocument 404 /404.html
    # handle all requests throug SCGI
    SCGIMount /
    # matches locations with a dot following at least one more
characters, that is, things like   *,html, *.css, *.js, which should be
delivered directly from the filesystem
    <LocationMatch \..+$>
        # don't handle those with SCGI
        SCGIHandler Off
    <Directory f:/home/jan/workspace/blauton/public/>
        Options +FollowSymLinks
        Order allow,deny
        allow from all

:password: ###
:port: 9999
:logfile: log/scgi.log
:config: config/scgi.yaml
:control_url: druby://
:disable_signals: true
:env: development
Bojan M. (Guest)
on 2006-01-13 21:31
(Received via mailing list)
Hi Jan,
all same without quotes. Should do clean install of apache/mysql/scgi to
see where the problem is.


Jan P. wrote:
> <VirtualHost *:8080>
>    <LocationMatch \..+$>
> ---
>>>   ServerName rails.bojan
>>>         allow from all
>> and these is scgi.yaml in config folder
>>> to access your application on port 9999 with your web browser directly?
>>>> However when I start service, for I receive
>>>>> Bojan M. wrote:
>>>>>> Any help is appreciated.
>>> Rails mailing list
>> Bojan M.
> _______________________________________________
> Rails mailing list
> removed_email_address@domain.invalid

Bojan M.
Informatika Mihelac, Bojan M. s.p.  |
-> tools, scripts, tricks from our code lab:
This topic is locked and can not be replied to.