Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6616205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:33:18+00:00 2026-05-25T20:33:18+00:00

I’ve been searching for a way to reliably deploy a Rails 3 application on

  • 0

I’ve been searching for a way to reliably deploy a Rails 3 application on Windows. I’m quite shocked that it seems like there isn’t currently any way to do this. The Apache + few Mongrel services solution don’t work currently because Mongrel cannot run in daemon mode therefore I can’t install it as a mongrel_service.

The requirements I guess should be:

  • A web server compatible with Rails 3.
  • Must be able to run as a Windows service, daemonized.
  • Must be able to restart automatically in case something goes wrong.
  • Must be production quality: no memory leaks, etc.
  • Should be able to scale, and accept multiple requests concurrently.
  • Less hacks possible.

I found out these things:

  • Mongrel is not production ready for Rails 3 (1.2.0pre), I experience memory leaks quite fast from a console window. The app just exits.
  • Mongrel doesn’t run in daemon mode (-d) with Rails 3.
  • Therefore Mongrel cannot be installed as a service.
  • Phusion Passenger is not available on Windows (would be the best solution).

These are the possible solutions I came up with:

  • Get a Linux box, install Apache + Phusion Passenger and roll.
  • Using thin, however, the author says the thin process is not ‘guarded’.
  • Using Ngnix, however, the author says he just ran a default app, not a full run app.
  • Using Ngnix. I think this solution suffers the same problem as above.
  • Using a virtualization of Linux, but I must solve problems like auto-start, etc.
  • Run on JRuby within Tomcat.

This might be a handy tool: http://projectkenai.com/projects/winsw

I hope we can find a real solution to this issue.


Update:

I agree that JRuby + a j2ee container is the best bet. Some problems must be resolved like gems with extensions, etc. There are lots of valuable ideas here: http://rails-nutshell.labs.oreilly.com/ch14.html#production_r259035_id35801805

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:33:18+00:00Added an answer on May 25, 2026 at 8:33 pm

    This is the setup I currently have running:

    • Windows server 2008
    • Apache 2.2
    • Thin Server
    • Ruby 1.9.2
    • Rails 3.0.9

    Installation of these aspects is covered by this great tutorial “How to install and configure Ruby on Rails with Windows Server 2008 EE“. I ignored the LDAP and ActiveDirectory bit, but there is a nice workaround discussed there for installing Thin server since gem 'thin' will normally break on Windows.

    For production I set up MySQL Server 5.5 to host my database. The mysql2 adapter is required for Rails 3 but is not yet supported in my Windows environment. The mysql adapter will also throw an error on Rails 3, but as a workaround you can get it to work by installing an older version of libmysql.dll. You just need to drop it into your Ruby192/bin directory.

    Once the proper mysql adapter and server is installed you’ll need to create the database:

    >> mysql -u root -p  
    [enter root pw]  
    create database production;  
    quit;  
    

    (You may need to add your MySQL installation to your path if ‘mysql’ cannot be found.)

    Finally, set the database config found at your_rails_app/config/database:

    # MySQL Production Database
    production:
      adapter: mysql
      database: production
      pool: 5
      timeout: 5000
      encoding: utf8
      password: [your_root_password]
      host: localhost
    

    The rest, including the proxy setup and running as a Windows service, is covered at “How to install and configure Ruby on Rails with Windows Server 2008 EE“. To make sure your basic Thin setup is running correctly:

    thin start -p 3000 -e production
    

    This should start your server on port 3000 in production mode using the MySQL database. The only thing missing here is load balancing, which I’m hoping to find an answer to soon!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a French site that I want to parse, but am running into
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.