views:

94

answers:

2

I'm writing a Ruby on Rails app that normally runs on Heroku or a Linux Box, but I'd need to deploy it to a Windows Server as well.

The Server is a 64-Bit Win2008 Server with IIS 7.0 installed, so normally I'd prefer using IIS instead of setting up an Apache next to it.

I just don't know if Ruby/Rails works with IIS? Do Gems work? Is 64-Bit an issue?

I'm thinking of using Ruby 1.9.1 and Rails 2.3.

+1  A: 

you must like pain because this deployment is going to hurt. I don't know if this is a solution for you, but at my old job we were deploying web apps on windows tablets (over 200 of them) and decided to use virtual box and deploy the app in the vm. One of our old apps on the pc tablets we deployed on windows without iis, just using ruby and rubygems with mongrel as the app server and mysql as the database but it was not pleasurable.

Jed Schneider
That's actually an interesting idea: Install Hyper-V server and run some Linux in it. I'll keep that in mind as an idea. (PS: I'm a SharePoint developer, so I don't just like pain, I'm actively seeking it...)
Michael Stum
lemme know if you want to go that route, either myself or my old boss would probably be able to give you some tips. I think we ran into some license issues using the compiled version of virtual box, so we had to compile it from source, which was not a simple process (I think they try to keep it that way).
Jed Schneider
+1  A: 

You can deploy Rails under IIS, it's just very difficult and there's not a lot of documentation. You'll need a special Fast-CGI implementation: http://roriis.codeplex.com/

Also info here: http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx

Rails under Apache on Windows is a bit easier, but the biggest drawback of a Windows deployment is that you can't use Capistrano to automate deployments. Gems work on Windows. All my experience is 32bit, there might be a 64bit related glitch, but I doubt it.

Terry Lorber