# Starting Mongrel via script/server

**URL:** <https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871>\
**Category:** Rails\
**Created:** [January 15, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871 "2007-01-15T21:53:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lraiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Post date:** [January 15, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871/1 "2007-01-15T21:53:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![lraiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Post date:** [January 15, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871/2 "2007-01-15T22:41:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lraiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Post date:** [January 15, 2007, 10:57pm UTC](https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871/3 "2007-01-15T22:57:23Z")

</div>

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](http://0.0.0.0:3000)

Dave T.

---

<div class="post-metadata">

**Author:** ![lraiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Post date:** [January 15, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871/4 "2007-01-15T23:38:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lraiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Post date:** [January 16, 2007, 1:28am UTC](https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871/5 "2007-01-16T01:28:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lraiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Post date:** [January 15, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871/6 "2007-01-15T23:55:30Z")

</div>

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 🙂

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.

---

<div class="post-metadata">

**Author:** ![lraiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Post date:** [January 16, 2007, 2:47am UTC](https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871/7 "2007-01-16T02:47:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lraiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Post date:** [January 16, 2007, 4:42am UTC](https://www.ruby-forum.com/t/starting-mongrel-via-script-server/81871/8 "2007-01-16T04:42:03Z")

</div>

> 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
