Maxime Calay wrote:
I searched three hours how to start my RoR application automatically as
windows starts. No information about this on internet. Maybe it’s too
easy. Not for me !
I have installed InstantRails2.0 and i know there is a menu to start
command prompt with ruby, but how to access this command prompt in
command line from cmd.exe ???
If i run cmd.exe, then go to rails app directory and type “ruby
script/server” it doesn’t work because “ruby” command is not recognized.
I need to start automatically my ruby application at windows startup
Thank you for your answers
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to .
To unsubscribe from this group, send email to
For more options, visit this group at
There are a
number of ways to do this. One way I have used is to set up a couple
of .bat files that run from startup.
<small>start_app.bat</small> <small>CD C:\InstantRails\rails_apps\my_app`
ruby script\server -e production
To start your server
from cmd.exe, just run ‘use_ruby.cmd’ found in the InstantRails
directory and then cd app and ‘ruby script/server’
You can also set up mysql and mongrel_rails to run as services
but that is fairly complex but doable. I do it from an installer so I
would have to extract the relevant stuff if you are interested. Let me
know if you want to see that.