This forum is no longer active. Please post your questions to our new community site

Running Rails as a Process ?

Subscribe to Running Rails as a Process ? 2 post(s), 1 voice

Avatar cpaltenghe 7 post(s)

We are about to deploy our Rails application to a common server for extended testing.
Although I can get it to run temporariliy via remote desk top in a command dialog, it only lasts as long as I am logged on. Is there a recommended way to get Rails to run as a process? (MySQL isn’t an issue in this case as we are connecting to an MS SQL Server database on a different server than the web server).

Also, where is the port number configured?

Avatar cpaltenghe 7 post(s)

ON 12/26/2007 – Daniel Lopez Responded to some of my questions out-of-band (my fault). I wanted the rest of you to benefit, so here is the rest of the thread….

Is there a recommended way to get Rails to run as a service?

  • You can install mongrel as a service if you type:
    mongrel_rails -N “name_of_service” -p “port” -c “project_directory”

How do you support multiple instances ?

  • Yes you can have multiple instances. If you install 1.0-beta-4 you
    can use Apache with a mongrel cluster with “production mode”. This
    version is still not released, it will be available for download

Last, I haven’t deployed Rails 2.0. What is the recommended way to do that? Uninstall Rubystack, or can I install over the existing one.

To update the Rails 2.0 gem, you start the “Use Ruby” Command Prompt
with administrator rights by finding “Use Ruby” in the Start menu,
right-clicking on “Use Ruby” and choosing “Run as administrator”. Then
you can update Rails typing this:
  1. gem install rails

On the other hand, you can install another RubyStack in other
directory. Then copy your application files in the new RubyStack.

What happens to the Projects folder?

It’s fixed on 0.1-beta-4 (to be released tomorrow). Now the project
directory is created in “C:\Documents and Settings\User\BitNami
RubyStack projects”, to avoid permissions problems on Vista.