Serving a Rails App on IIS 7: Difference between revisions
(Created page with "Category:Ruby Category:IIS Category:Web Development == Overview == The rails application can't be exposed to http requests, at least on IIS. The basic work-aroun...") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 13: | Line 13: | ||
== Helicon Zoo == | == Helicon Zoo == | ||
I think basically this is a module that you can download that will handle everything described in the [[ | I think basically this is a module that you can download that will handle everything described in the [[#Overview|overview]]. | ||
* Install '''Microsoft Web Platform Installer''', and run it. | * Install '''Microsoft Web Platform Installer''', and run it. | ||
| Line 21: | Line 21: | ||
** After clicking the '''OK''' button, a "Zoo" tab will be added at the top of the application. | ** After clicking the '''OK''' button, a "Zoo" tab will be added at the top of the application. | ||
* '''Zoo''' tab > '''Packages''' > select the Ruby package. | * '''Zoo''' tab > '''Packages''' > select the Ruby package. | ||
''N.B. This step took a very long time. I was wondering if it was stuck or not. After accepting the terms for the installation, it initiated the installation. It looks like it's attempting to download resources. The progress was reported to be "0 Kb/sec". I don't know if it was due to something local or remote. I left it to install, checked back 30 minutes or an hour later and it had completed the installation successfully.'' | |||
Latest revision as of 07:05, 22 November 2014
Overview[edit]
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.
- Ruby on Rails With IIS 7 (MSDN Blogs)
Helicon Zoo[edit]
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.
N.B. This step took a very long time. I was wondering if it was stuck or not. After accepting the terms for the installation, it initiated the installation. It looks like it's attempting to download resources. The progress was reported to be "0 Kb/sec". I don't know if it was due to something local or remote. I left it to install, checked back 30 minutes or an hour later and it had completed the installation successfully.