Installing RVM and Ruby and such

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Carolina Tiger Rescue's picture

In my Omega 4 tutorial from LevelUpTuts, I'm instructed to install XCode, and this has something to do with getting Ruby installed. He talks about it in an Apple environment.

I'm managing Drupal on a linux machine using SSH from a Windows environment. I would have thought this was adding additional command capability on the site itself, hence up on the server. Is this something I need to be installing on my local PC or on the server where my Drupal site is located? Anyone have good reference for this?

feeling clueless and noobie-esque.... Amanda

Comments

Presumptions

Screenack's picture

I haven't seen the LevelUp Tuts tutorial, but I'm presuming that you'd install Ruby/RVM so that you can install the necessary gems to enable the SASS/Compass preprocessing that you'll need in order to create the CSS files for your Omega theme. Does that sound right?

You might be able to install RVM on GD, but, from a workflow perspective, I'd advise against it. You only need RVM so you can preprocess your SASS files. If so, you can use the compass app: http://compass.kkbox.com/ I always do command line compilation, but I presume it's a solid app.

Installing RVM on Windows is tons of fun: behold — http://blog.developwithpassion.com/2012/03/30/installing-rvm-with-cygwin...

I use virtualbox for my development, though easier than Windows/RVM, not really too much easier.

So, in short, maybe you'll want try using, say, Sublime Text + Compass.app on Windows to get a feel for preprocessing?

Carolina Tiger Rescue's picture

Yes, installing Ruby/RVM to install gems... sounds reasonable.

I think part of the problem is not really understanding the terminology yet. I thought that Ruby/RVM were add-ons to a Drupal theme that enabled easy plug in of extra tools (called Gems) (Is that correct? Yes/No/please clarify)

Reading online, I'm seeing a lot of "Ruby on Rails" references and comparing directly with Drupal as if they were apples to apples. But Ruby is apparently a programming language/style.

Maybe an issue here is that I'm developing my site directly on a server in maintenance mode, and a lot of the documentation I'm using assumes that my test environment is on a local machine. And if so, I'm taking your comments to indicate that ... (sorry, I want to set this down and work on a different project for a bit, I'll try to get back, edit and clarify this afternoon after I've done a little more research)

Charlie's got the Ruby aspect

Screenack's picture

Charlie's got the Ruby aspect covered. For Omega, Ruby merely facilitates development aspects: such as preprocessing and grunt integration. For the production site, however, ruby is not required. That said, there is a lot of community development activity on the linux and Mac end. Windows configuration is notably problematic for a number of reasons, whether you love Microsoft of not. VirtualBox runs great under Windows, and is free. BUT you'll be configuring your own operating system, which is not trivial.

http://www.ampps.com/ is a Windows apache/php stack a developer I work with uses and recommends. That doesn't address using ruby tools for integration, however.

That helps

Carolina Tiger Rescue's picture

Fantastic- conclusion: "don't worry too much about Ruby"

I work pretty exclusively with Microsoft, and will take it given the option because it's what I'm used to, but...

There's people out there that love Microsoft?

Ruby is indeed a separate

cdmo's picture

Ruby is indeed a separate programming language from PHP and RVM is a tool to manage the version of Ruby installed and Gems are Ruby libraries that tack functionality on. There's another thing called Bundler that will keep track of the version of Ruby and the versions of the Ruby Gems that your app (or Omega 4.x theme) depends on in order to run.

Getting a local dev environment is probably a good idea. I've only ever setup a local server on a Mac, but I'm sure there are tutorials out there for Windows users if you Google around a bit.

Start with WAMP

chrisarusso's picture

WAMP http://www.wampserver.com/en/ is the standard local dev setup. Definitely many a tutorial there.
We can look into your status at next meetup.

Not to add a lot of

fchandler's picture

Not to add a lot of confusion, but another WAMP stack for windows is Uniform Server http://www.uniformserver.com/. It is lightweight, doesn't require any Windows configuration and can be run on a flash drive.