# RE: RoR meets .net \*cringe\*

**URL:** <https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936>\
**Category:** Rails\
**Created:** [February 24, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936 "2006-02-24T17:42:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [February 24, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936/1 "2006-02-24T17:42:27Z")

</div>

It was a miserable failure for us. Your best bet is to run on Linux.

> 1. Has anyone done any benchmarks with it? Is there any reason this  
> couldn’t be viable for production loads? (feel free to speculate if  
> you  
> haven’t)

When it finally worked, after two weeks of trial and error (and we can’t  
reproduce it again) it performs poorly under IIS. It looks good until  
you start hitting it with any benchmarks. It really slows down.

> 1. Are there any practical suggestions for laying out an application  
> (one web site) that is both [asp.net](http://asp.net) and RoR for the regex isapi  
> filters?  
> (sub-domain them, different paths etc)

Your best bet is to install Apache on Windows, set it to run on a higher  
port and use ISAPIRewrite to proxy to that higher port.

Even then, it’s dog slow.

I’m in a Windows shop, so believe me, I know what you’re going through.  
The reaility is that Ruby itself does not run well under Windows. It’s  
noticeable in the task manager when you run Console or even IRB.

Your best bet is to do what I did:

1. Learn how to set up Lighttpd on Debian. (Debian is easy and stable,  
so your boss will like it)

2. Learn how to set up multiple Rails apps on Debian with Lighttpd. I’ve  
got config files if you’d like them.

3. Write your application and keep track of the hours you spend on it.

4. Install Rails under IIS. Just try to make it work. After a few days  
of random frustration, you might get it to run. Run performance tests  
against it. It will be slow

5. Install Apache on Windows, on a higher port. Load your app as a  
FastCGI. Performance test it. It will also be slow 🙂  
6 Test your app on the Linux machine. It will be lots faster.

Show your boss that you can develop much faster with this enviornment,  
thus saving money in both development time and turnaround time. Also  
write tests so you can _show_ why Rails is better. Additionally, if you  
use SubVersion (which will run on Windows) and a Linux production  
server, you can use SwitchTower to manage your deployments which is a  
HUGE advantage.

Let me know if I can be of any help. It’s unfortunate that there’s not  
much love for Windows out there.

Zed S.'s Mongrel now runs under Windows, so you might have some luck  
with that but you’ll need to make sure you’re running the latest ruby  
(1.8.4) so you can use the services stuff. I have not tested this yet  
but I do plan to give it a spin.

Sorry to burst your bubble 🙂

Brian H.  
Web D.  
Learning & Technology Services  
Schofield 3-B  
University of Wisconsin-Eau Claire  
715 836 3585  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [February 24, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936/2 "2006-02-24T19:07:57Z")

</div>

This is disappointing to hear. it is also key for me to have a  
satisfactory  
hosting solution on windows for ror ( wether lighty, apache, iis or  
mongrel).

Sure feels like ror is predominantly becoming a nix solution.

Praying for some success stories running ror in production on windows.

Fraz

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [February 24, 2006, 7:20pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936/3 "2006-02-24T19:20:12Z")

</div>

Well, I think that means I’m out of luck. I have no problem setting up  
debian (though I’d probably run it on a flavor of BSD if I had my  
choice) I develop on my iBook at home and I’d rather do the same at  
work.

Unfortunately we’re stuck hosting on M$ Windoze. The red tape in this  
company is unusually tangled. It has taken me 5 days to try,  
unsuccesfully get a folder deleted off of my machine that was created by  
it’s previous owner. I have this small window to get ruby through and I  
doubt it’s going to happen if it can’t happily run on 'doze.

If anyone has any other ideas I’m all ears because the alternative is  
doing all this work in asp.nein.

Cheers, Simon.

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [February 25, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936/4 "2006-02-25T14:22:25Z")

</div>

> 1. Learn how to set up multiple Rails apps on Debian with Lighttpd. I’ve  
> got config files if you’d like them.  
> Can you send me the lighttpd config files? I’m a bit struggling with  
> running multiple applications on lighttpd.

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [February 25, 2006, 10:27pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936/5 "2006-02-25T22:27:19Z")

</div>

Brian H. wrote:

> I will continue to investigate Ruby on Windows and would welcome any  
> help.

I’d be happy to do some testing for you. I’m also working in a Windows  
shop, and running my RoR dev apps on Webrick. I’m really dreading the  
day when I need to migrate to a production Windows server.

I seriously believe this is the biggest knock against RoR in many  
organizations. I’m sure Debian et al, are nice for RoR, but anything  
other than Windows Server in an Active Directory network will be  
problematic. Sysadmins don’t want to be worrying about that guy down the  
hall that insists on running Debian/FreeBSD/etc instead of Windows like  
every other developer in the building.

Another issue I have is that I need to be able to run IIS 6 on one IP,  
and an RoR-friendly server on another IP…all on the same machine.  
Apache/lighty may be the way to go, but I was really hoping Mongrel  
would be the ticket. I’ll try it next week and see if I have any luck.  
-Chris

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [February 24, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936/6 "2006-02-24T20:35:50Z")

</div>

I hear you. I tested Mongrel this morning with no luck on performance.

Apache + fcgi on the same windows box proxied through IIS might be  
useful to  
you though so let me know if you’d like config instructions that I used.  
I  
am planning on putting this online at some point but I want to cover the  
performance issues before I do.

I will continue to investigate Ruby on Windows and would welcome any  
help.

On 2/24/06, removed\_email\_address@domain.invalid  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [May 2, 2006, 9:54pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936/7 "2006-05-02T21:54:39Z")

</div>

> Another issue I have is that I need to be able to run IIS 6 on one IP,  
> and an RoR-friendly server on another IP…all on the same machine.  
> Apache/lighty may be the way to go, but I was really hoping Mongrel  
> would be the ticket. I’ll try it next week and see if I have any luck.  
> -Chris

One word: VMWare.

> **[Introducing VMware Cross-Cloud Services](https://www.vmware.com/)**
>
> Discover how VMware Cross-Cloud services give organizations freedom and control without trade-offs.

Run Windows as the host. Also do your IIS webserving off of this.  
Install whatever \*nix you like as a guest OS under VMWare. You can  
configure the VM instance to have the second IP address.

Since you are only running one vm instance, you could use the free  
VMWare Player (though you’d need to grab a copy of VMWare Server, which  
is also free, to create your own VMware instance if you don’t like any  
of the readily available images).

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [May 3, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936/8 "2006-05-03T19:06:35Z")

</div>

Hi, I was in similar situation with a client where they was using  
[ASP.Net](http://ASP.Net). I attempted to make modifications to the source that I was  
given and there was one failure after another with MS products. Thus,  
as an exercise, I implemented everything that was in [ASP.Net](http://ASP.Net) in a days  
time + plus all the additions that they wanted me to add to [ASP.Net](http://ASP.Net)  
code. The clients were blown away because it had all the error  
checking plus the additions of AJAX. Furthermore, I told them that it  
was zero cost and you wouldn’t have to purchase any expensive M$  
licenses. Next, your applications are no longer restricted to IIS web  
server and that you can use Apache in a Unix environment. In short,  
save money, save time, and concentrate on delivering quality  
applications. The moral of this experience is that managers don’t  
understand talk but if you show them something this is when they bite;  
the proof is the pudding.

Peace,

-Conrad

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [May 3, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/re-ror-meets-net-cringe/72936/9 "2006-05-03T19:06:33Z")

</div>

I have a Gentoo Linux virtual machine built with a full LAMP stack plus  
Rails 1.1.2, lighttpd, SQLite and PostgreSQL. As a ZIP archive it’s  
about a gigabyte, and unzipped about 3 GB, but if there’s stuff there  
you don’t want, I could delete it to make it smaller. For example, I’ve  
loaded a lot of the documentation, X, a couple of math packages and the  
XFCE desktop. It’s a free as in open source project, and I’m looking for  
testers!!!

I think I have hosting for the downloads lined up, but if someone here  
wants to adopt it, I’d be willing to let them. My own web site doesn’t  
have quite enough disk space.

Will G. wrote:

> Run Windows as the host. Also do your IIS webserving off of this.  
> Install whatever \*nix you like as a guest OS under VMWare. You can  
> configure the VM instance to have the second IP address.
> 
> Since you are only running one vm instance, you could use the free  
> VMWare Player (though you’d need to grab a copy of VMWare Server, which  
> is also free, to create your own VMware instance if you don’t like any  
> of the readily available images).

–  
M. Edward (Ed) Borasky

> **[世界杯竞猜彩票-世界杯官网竞猜（集团）有限公司](http://www.linuxcapacityplanning.com/)**
>
> 世界杯竞猜彩票一直以来遵守商业道德，世界杯官网竞猜坚持诚信为本，保证诚实经营。世界杯竞猜彩票先后成为安徽省电子商务协会理事单位、安徽省网商协会会员单位、合肥市电子商务协会理事单位、合肥市服务外包行业协会会员单位、安徽省云计算产业促进会会员单位。世界杯官网竞猜一直保持良好的技术及服务态度，更好地为客户服务。
