Starting Mongrel via script/server

The 2nd edition of “Agile Web D. with Rails” claims that
script/server would start Mongrel or lighttpd instead of WEBrick if one
of these servers is installed. It does not seem to do that for Mongrel
on my Windows XP that has Mongrel installed by installing Instant Rails
1.4. Should I assume that the book has an error?

Leonid Raiz wrote:

The 2nd edition of “Agile Web D. with Rails” claims that
script/server would start Mongrel or lighttpd instead of WEBrick if one
of these servers is installed. It does not seem to do that for Mongrel
on my Windows XP that has Mongrel installed by installing Instant Rails
1.4. Should I assume that the book has an error?

mongrel_rails start

On Jan 15, 2007, at 2:53 PM, Leonid Raiz wrote:

The 2nd edition of “Agile Web D. with Rails” claims that
script/server would start Mongrel or lighttpd instead of WEBrick if
one
of these servers is installed. It does not seem to do that for Mongrel
on my Windows XP that has Mongrel installed by installing Instant
Rails
1.4. Should I assume that the book has an error?

I’m not sure what 1.4 has in it: does it include an appropriately
recent version of Rails. The book assumes Rails 1.2, and gives
instructions inside the front cover on how to download a version of
Rails that will work with the book’s content until 1.2 becomes
generally available. If InstantRails has an older Rails, stuff like
this might not work.

FWIW, script/server on my local box runs webrick with 1.1.6, but
happily uses Mongrel with the Rails I encourage you to download.

dave[~/rails 15:39:39] script/server
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000

Dave T.

Dave,

Thanks for your response. IR 1.4 comes with Rails 1.1.6 and I did
follow your instructions in the book’s front cover to download and
unzip 1.2 into vendor directory. One thing I noticed is that rails -v
still reports 1.1.6 after running rake rails:update (don’t know if that
is important). Second observation is that readme.html that comes with
Rails 1.2 makes a statement that script/server will start lighttpd (if
installed) but does not mention such capability for Mongrel.

I have to mention that I enjoy learning and developing with Rails
almost as much as I hate dealing with installation and server
configuration.

  1. I did run rake rails:update
  2. Everything related to Mongrel is in directories under
    C:\InstantRails-1.4\ruby\lib\ruby\gems\1.8\gems. I am issuing
    script/server command while in directory
    C:\InstantRails-1.4\rails-apps\myapp and this command starts WEBrick.
  • LR

On Jan 15, 2007, at 4:13 PM, LRaiz wrote:

Thanks for your response. IR 1.4 comes with Rails 1.1.6 and I did
follow your instructions in the book’s front cover to download and
unzip 1.2 into vendor directory. One thing I noticed is that rails -v
still reports 1.1.6 after running rake rails:update (don’t know if
that
is important). Second observation is that readme.html that comes with
Rails 1.2 makes a statement that script/server will start lighttpd (if
installed) but does not mention such capability for Mongrel.

It does report 1.1.6–the core team won’t update the version number
until the release, and I didn;t want to confuse things by changing it
on this bootleg version :slight_smile:

  1. Did you run rake rails:update
  2. Is mongrel in the path?

If neither of these fix it, then I’d just fall back on “mongrel_rails
start” (but I believe it should work–it does here, and on all the
other machines I’ve tried it on).

Regards

Dave T.

On Jan 15, 2007, at 6:22 PM, LRaiz wrote:

  1. I did run rake rails:update
  2. Everything related to Mongrel is in directories under
    C:\InstantRails-1.4\ruby\lib\ruby\gems\1.8\gems. I am issuing
    script/server command while in directory
    C:\InstantRails-1.4\rails-apps\myapp and this command starts WEBrick.

Is mongrel in your path?

Can anyone running mongrel under instantrails shed any light on this?

Dave

Dave T. wrote:

Is mongrel in your path?

What does it mean, precisely? What would you like me to check?

  1. If I type PATH in command window then I do see
    C:\InstantRails-1.4\ruby\bin listed among directories.
  2. C:\InstantRails-1.4\ruby\bin contains files mongrel_rails,
    mongrel_rails.cmd, and mongrel_rails_service.cmd

Of cause I can type “mongrel_rails start”. I just wanted to check if I
was doing everything correctly.

Thanks for your responses and sorry to have used your time.

Regards,

  • LR

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs