Re:Get Ruby and Rails running on Ubuntu with one command
by ryanbigg on Friday January 21, 2011 @05:51PM
(#2129255)
It's not too often that you'll have a server that runs two applications. Sure, if that were the case then you would be using RVM in which case I would recommend following the guide already linked.
But if you've got one application running one version of Ruby, then this is definitely a perfect way to go.
Re:Get Ruby and Rails running on Ubuntu with one command
by cosgroveb on Friday January 21, 2011 @02:20PM
(#2128503)
I posted the following guide the other day:
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you
Sadly it languished with no upvotes. :( I found it extremely useful, however!
Re:Get Ruby and Rails running on Ubuntu with one command
by cosgroveb on Friday January 21, 2011 @03:31PM
(#2128743)
Ahh.. Dupe, then. Thanks!
Re:Get Ruby and Rails running on Ubuntu with one command
by ryanbigg on Friday January 21, 2011 @05:50PM
(#2129252)
I'm glad you found it useful, but yes it was already posted back in December.
Re:Get Ruby and Rails running on Ubuntu with one command
by roxstar on Friday January 21, 2011 @02:21PM
(#2128506)
Is rvm commonly used for production or just development environments? I can see where having a script to get your production (or testing) environment up and running with minimal user work would be useful, but if this is meant for just development I agree with your point.
Re:Get Ruby and Rails running on Ubuntu with one command
by mattyb on Friday January 21, 2011 @02:36PM
(#2128563)
I use RVM for both development and production, and I've written scripts that use it to set up both my development and production machines. It's nice to be able to reformat my workstation (for new Ubuntu releases, or new hardware) and get back to business quickly. As far as production, I'm not really sure RVM is that much of a win, assuming you're compiling the latest Ruby anyway and have only one app on the server. I use it since I've yet to learn proper packaging and therefore the only (easy) way to uninstall a Ruby is via RVM (I know about checkinstall, but IME it's buggy as hell).
Re:Get Ruby and Rails running on Ubuntu with one command
by tibbon on Friday January 21, 2011 @02:10PM
(#2128466)
Hmm, maybe putting together a oneliner for that would help a lot of people. Added to my todo list.
Re:Get Ruby and Rails running on Ubuntu with one command
by colbyolson on Friday January 21, 2011 @02:19PM
(#2128502)
I don't understand the point of using a one-liner vs just doing it in a process and getting an understanding of whats going on at each step.
Re:Get Ruby and Rails running on Ubuntu with one command
by joshfng on Friday January 21, 2011 @02:27PM
(#2128530)
I totally agree that you should become fully comfortable with setting up a box manually. But when you perform the same setup over and over and have the process memorized as I do then writing a little shell script to get the job done never hurts.
Re:Get Ruby and Rails running on Ubuntu with one command
by colbyolson on Friday January 21, 2011 @03:44PM
(#2128805)
I agree, and perhaps I should have added that into my comment.
For a newbie, have them walk through it, but for the repeated process, then automate it.
Why not just do this?