Hosting ruby application of IIS 7

109 views
Skip to first unread message

Sasmit Sawant

unread,
Jun 20, 2013, 8:23:24 AM6/20/13
to rubyonra...@googlegroups.com
Hi all,

I am new to ruby programming. I have just started creating a simple ruby application using ruby on rails. I have installed ruby 1.8.7-p371 and DevKit successfully. I am able to run the application using http://localhost:3000 but now my requirement is to host the application on IIS 7 and this is where I am stuck. Can anyone please help me with the steps to configure my ruby code on IIS? And also running the code using the IP address.

Thank you

Robert Walker

unread,
Jun 20, 2013, 3:54:47 PM6/20/13
to rubyonra...@googlegroups.com
Sasmit Sawant wrote in post #1113034:
> I am new to ruby programming. I have just started creating a simple ruby
> application using ruby on rails. I have installed ruby 1.8.7-p371 and
> DevKit successfully.

If you're just getting started with Ruby on Rails then you may want to
seriously consider moving to a more current version of Ruby. If you're
using Rails 3.2.x then use Ruby 1.9.3. If you are using Rails 4.0.rc2
then use Ruby 2.0.

> I am able to run the application using
> http://localhost:3000 but now my requirement is to host the application
> on
> IIS 7 and this is where I am stuck. Can anyone please help me with the
> steps to configure my ruby code on IIS? And also running the code using
> the
> IP address.

Everything I've seen pertaining to running Rails on IIS is using
FastCGI. IMHO this is is a really bad choice for deployment of
production applications. There are many great ways to deploy Rails
applications using open source web servers.

Personally, I use Phusion Passenger along with the Apache web server
with great success. I deploy to Ubuntu Linux on a Virtual Private Server
(VPS).

https://www.phusionpassenger.com

That being said, if you're stuck with IIS for deployment then you may
want to read up on using FastCGI inside IIS. Good luck with that. I
tried FastCGI years ago with a Rails deployment and was never happy with
that setup.

--
Posted via http://www.ruby-forum.com/.

Matt Jones

unread,
Jun 21, 2013, 1:15:29 PM6/21/13
to rubyonra...@googlegroups.com


On Thursday, 20 June 2013 05:23:24 UTC-7, Sasmit Sawant wrote:
Hi all,

I am new to ruby programming. I have just started creating a simple ruby application using ruby on rails. I have installed ruby 1.8.7-p371 and DevKit successfully. I am able to run the application using http://localhost:3000 but now my requirement is to host the application on IIS 7 and this is where I am stuck. Can anyone please help me with the steps to configure my ruby code on IIS? And also running the code using the IP address.


This looks like one of the better references (most of the Rails-on-IIS stuff is pretty old):


If there's *any* way you can run something better supported (Apache runs on Windows), that may be preferable - support for IIS is definitely not a priority, and you may encounter hard-to-diagnose bugs.

--Matt Jones
 

Yaroslav G.

unread,
Sep 6, 2013, 5:29:05 PM9/6/13
to rubyonra...@googlegroups.com
Sorry for late response. Please take a look at this article:

http://www.helicontech.com/articles/ruby-on-rails-on-windows-in-production/

It has changed significantly for past few month.
Reply all
Reply to author
Forward
0 new messages