Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,703 Points

Ruby On Rails + WAMP?

I know Ruby comes with its own WEBrick server, but from my understanding that is not something you would want to deploy for your production site, just development it is fine to work with.

But when I "play around" with these languages I like to set up my environment exactly how I would when developing "for real".

I have just begun my journey into Rails, so I was wondering is it possible to install Ruby On Rails along side my WAMP server? If so how would one go about setting this up correctly?

4 Answers

Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,703 Points

Ah, yes. This is the post I was using to set mine up, now which post here would you most recommend? Some of these posts are over 3 years old and some of the other users are saying they are "outdated and Ruby doesn't support anymore". Considering how popular Apache is, I doubt they would stop supporting apache.

Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,703 Points

Well, in the example of the popular vote. They are installing Mongrel and then having Apache reroute to it. Is this the best way, I have heard of mod_rails. Can't Apache parse rails on its own?

Again my knowledge and understanding of how this is working together is limited, I am used to PHP's ways. haha.

Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,703 Points

I read a bit more on mod_rails aka Phusion Passenger and I quote directly from their documentation. "Phusion Passenger works on any POSIX-compliant operating system. In other words: practically any operating system on earth, except Microsoft Windows." So this basically means am stuck using Apache to reroute to Mongrel way for Windows?

Also as far as the capabilities of Ruby. After creating a web application with Rails, how far can you take Ruby into standalone applications for Android or iOS devices? Is that where JRuby and such comes in to play? :)

> But when I "play around" with these languages I like to set up my environment exactly how I would when developing "for real".

You wouldn't use WAMP in production, you also probably wouldn't run Apache on Windows as a publically facing web server.

If you want to develop on system that mirrors production use a Linux VM, you might try Turnkey Linux's Rails VM

Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,703 Points

Well, you got me there. I definitely wouldn't use WAMP in production, nor would I run a server on anything but Linux. But WAMP works just like XAMP so I have never ran into problems developing on my Windows machine after transferring files or small web applications to a Linux web hoster.

I guess I'll set up Linux on one of my crappier machines and see it goes then. So far Ruby installation is just entirely too bumpy, like when you attempt to change the Ruby defaults (since you really wouldn't use them in production anyways) and install other gems, it even has problems with that. It is like you always have to find some work around for it, like the MySQL gem. Entirely too frustrating.