# How to auto-start a server for a Rails application with IR

**URL:** <https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390>\
**Category:** Rails\
**Created:** [May 17, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390 "2007-05-17T13:50:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 17, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390/1 "2007-05-17T13:50:12Z")

</div>

dear all,

I configured instant rails to start up when windows reboot.

but I want to let a rails application to start up automatically with  
instant rails.

How to do ?

thanks.

-Feng

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 25, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390/2 "2007-05-25T17:34:14Z")

</div>

On 5/17/07, Feng [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> dear all,
> 
> I configured instant rails to start up when windows reboot.
> 
> but I want to let a rails application to start up automatically with  
> instant rails.
> 
> How to do ?

Create a cmd or bat file that:

- adds the ruby\bin directory of IR to your path
- moves into your Rails app’s base directory
- runs the command: “mongrel\_rails start”

Curt

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 25, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390/3 "2007-05-25T17:37:14Z")

</div>

On 5/25/07, Curt (Work) Hibbs [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > How to do ?
> 
> Create a cmd or bat file that:
> 
> - adds the ruby\bin directory of IR to your path
> - moves into your Rails app’s base directory
> - runs the command: “mongrel\_rails start”
> 
> Curt

Oh yeah… then add a shortcut to that cmd file to your start-up folder!

Curt

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 31, 2007, 5:19am UTC](https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390/4 "2007-05-31T05:19:10Z")

</div>

Is there a way to install this .bat as a service? or hide the console  
window?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 31, 2007, 11:31am UTC](https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390/5 "2007-05-31T11:31:46Z")

</div>

xilo15 wrote:

> i want the rails app to startup whether i logonto the server or not.  
> any suggestions

You could try to install and use Mongrel as a service. See:  
[http://mongrel.rubyforge.org/docs/win32.html](http://mongrel.rubyforge.org/docs/win32.html)  
Cheers  
Mohit

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 31, 2007, 5:23am UTC](https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390/6 "2007-05-31T05:23:10Z")

</div>

i want the rails app to startup whether i logonto the server or not.  
any suggestions?
