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

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

On 5/17/07, Feng [email protected] 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

On 5/25/07, Curt (Work) Hibbs [email protected] 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

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

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
Cheers
Mohit

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