Curt Hibbs
2005-Oct-31 14:32 UTC
[Instantrails-users] [New FAQ Entry] Q: How can I auto-start my Rails app when I reboot?
Q: How can I auto-start my Rails app when I reboot?
Instant Rails will provide this ability before the final 1.0 release, but
you can also do it yourself. First, you need to have configured SCGI for
your Rails app. Then just create a bat or cmd file in your startup folder
that contains the following ("..." is the path where you installed
Instant
Rails):
cd ...\rails_apps\<my-rails-app>
...\ruby\bin\ruby.exe ...\ruby\bin\scgi_service
Basically, you have to change the current directory to you app''s base
directory, and then run the Ruby script scgi_service. This will read the
scgi configuration file in you app''s config subdirectory to properly
start
up your Rails app.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/instantrails-users/attachments/20051031/8c947097/attachment-0001.htm