Serving a Rails App on IIS 7

From Littledamien Wiki
Revision as of 05:21, 22 November 2014 by Video8 (talk | contribs) (→‎Helicon Zoo)
Jump to navigation Jump to search


Overview

The rails application can't be exposed to http requests, at least on IIS. The basic work-around is to use FastCGI to handle all requests via the ruby executable.

The thing that can cause problems there is that all requests include static files such as images, which ruby won't handle the way that you want.

There are pages that describe how to configure IIS directly to pass the requests to FastCGI piped through the ruby executable, but it seems dicey. Not a lot of people do it.

Helicon Zoo

I think basically this is a module that you can download that will handle everything described in the overview.

  • Install Microsoft Web Platform Installer, and run it.
  • Add the Helicon Zoo feed.
    • Options link at the bottom right corner of the Spotlight tab page.
    • Add a feed: http://www.helicontech.com/zoo/feed.html.
    • After clicking the OK button, a "Zoo" tab will be added at the top of the application.
  • Zoo tab > Packages > select the Ruby package.