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

Yohan Dantan
Yohan Dantan
2,370 Points

How to setup your own VM?

So how do I go about setting up my own VM for the project instead of Treehouses VM?

Is there a step by step guide that someone could link me to or write below? (if possible :])

2 Answers

When you say VM do you mean that you want a local server on your computer to run code from? Chris Wiegman wrote a great article on this topic: https://www.chriswiegman.com/2013/08/virtual-machines-the-holy-grail-of-local-web-development/ .

Some of the more popular options for local development are:

http://www.ampps.com/ https://serverpress.com/get-desktopserver/ https://www.mamp.info/en/

What local environment you choose will greatly depend on what technologies you are working with. DesktopServer is better for WordPress for example.

Yohan Dantan
Yohan Dantan
2,370 Points

Luke Pettway thanks! VM for Ruby - do the above links help for that?

If you need a ruby specific one check out https://bitnami.com/stack/ruby

Yohan Dantan
Yohan Dantan
2,370 Points

Thanks Luke Pettway - and apologies for the completely newb questions - but what do I then do - download the installer, install and then what steps do I then take to set it up? Is there a treehouse video on how to do it or another guide somewhere?

Thanks heaps in advance!

See if this helps, there is a section on installation and setup.

https://wiki.bitnami.com/Infrastructure_Stacks/BitNami_Ruby_Stack

Yohan Dantan
Yohan Dantan
2,370 Points

Luke Pettway on OSX - so it doesn't work the same way Vagrant does? or does it replace the need for Vagrant?

It's an alternative way of doing things, Vagrant is it's on technology stack. There is a slightly larger learning curve with Vagrant due to the technologies it uses. You could technically have both running since Vagrant is a VM host with specially configured settings.

Yohan Dantan
Yohan Dantan
2,370 Points

Luke Pettway - does that mean that in the Treehouse Ruby on Rails Badge (https://teamtreehouse.com/library/installing-a-ruby-development-environment) - I'd follow the same steps but instead of downloading the Treehouse VM I'd use the Ruby Stack 2.3.0-3 Dev (64-bit) 523 MB VM https://bitnami.com/stack/ruby/virtual-machine?

Again thank you for helping out sir!

I haven't done that course in particular but I'd imagine the setup would be different. With Bitnami, it should be a one click install, unless you use one of the VM's. What platform are you on? Windows takes a little bit more to set up but on OSX it should be straight forward.