Leave a comment

Upgrading your Vagrant box to Ruby 2.0

Sweet, I did not know about the option to package a Vagrant box. Thanks for this.

Entrepreneurship on Rails

If you followed the post on setting up Vagrant, you’ve got a nice working environment, hopefully quite close to the environment where your app is running live.

And now you need to upgrade that environment, so you’d like to upgrade your box alongside. In my case, I’m upgrading my app from Ruby 1.9.2 to Ruby 2.0 on Heroku, so I’d like to upgrade my Ubuntu VM too. This post will cover first the upgrade to Ruby 2.0, and then saving the upgraded box.

First we use apt-get to ensure that all of our installed software is up to date.

$ sudo apt-get update

Then we install some prerequisites: the build essentials, ZLib, Git.

$ sudo apt-get install build-essential zlib1g-dev git-core

I don’t want to simply upgrade Ruby, I’d like to go back and forth between the 2 versions while testing the upgrade. There are 2 recommended tools for…

View original post 231 more words

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: