Reputation: 23
I have a none standard need: I am going to develop an application that is part desktop app, part web app, but both are running on my customers machines. So there will be an install that will install everything, including the web server(s) on the customers machine. One requirement is that this system target both Windows and OSX users. I have three viable options: Java, PHP, or Ruby on Rails. My preference is Ruby on Rails, but I need to find an Apache module that will work with Windows. Is there such a beast? If not, how do folks run Ruby on Rails on Windows under Apache?
I am fully aware of the fact that Ruby on Rails does not need Apache, but the application will need Apache to fulfill all it's requirements. Thus the preference would be for an Apache module. If that isn't possible, I am open to other options.
Upvotes: 2
Views: 6467
Reputation: 2716
Well if you really want to go that route, you could probably use mod_rails
or mod_fcgi
. It might be an easier route to use a rails-specific webserver like Thin or Mongrel and just attach Apache as a frontend like it's usually done for load balancing.
See here for more inspiration:
Rails on Apache on Windows - HOWTO
However, Ruby on Rails is a pain on Windows even with the nice RubyInstaller packages. I've tried to work in this environment but you will quickly run into problems with gems not compiling or generally incompatible with Windows. Still, there's folks who stick to it.
Again, related posts on SO, which already covered this topic:
Limitations in running Ruby/Rails on windows
Is there anyway to run Ruby on Rails applications on a Windows box?
Upvotes: 3