A Vagrant base box that closely mirrors the Celadon Cedar stack on heroku
Shell Ruby
Pull request Compare This branch is 52 commits behind ejholmes:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is a veewee template for building a Vagrant box that closely mirrors the heroku Cedar stack. You can build it yourself by following the directions below or install a prebuilt version from here.

Easy install

Add the following to your Vagrantfile.

Vagrant::Config.run do |config|
  config.vm.box = "heroku"
  config.vm.box_url = "http://dl.dropbox.com/u/1906634/heroku.box"

And run vagrant up. The box will be downloaded and imported for you.

Building From Scratch

First, clone the repo and install gems with bundler.

$ git clone git@github.com:ejholmes/vagrant-heroku.git
$ cd vagrant-heroku
$ bundle install

Next, build the box with veewee. Go grab a cup of coffee because this is gonna take a while.

$ bundle exec vagrant basebox build heroku

And finally, install the box for use with Vagrant.

$ bundle exec vagrant basebox export heroku
$ bunlde exec vagrant box add heroku heroku.box

Now all you have to do is setup vagrant in your project.

$ bundle exec vagrant init heroku
$ bundle exec vagrant up
$ bundle exec vagrant ssh

Included Packages

The packages that are included are carefully selected to closely match those on the Celadon Cedar stack.

  • Ubuntu 10.04
  • Ruby 1.9.2-p180 MRI
  • RubyGems 1.3.7
  • PostgreSQL 8.3.14
  • NodeJS 0.4.7


RubyGems Version

Since heroku uses an older version of RubyGems (1.3.7) you may want to update this in your environment if some of your development gems depend on a newer version.

PostgreSQL Credentials

You can use the username postgres with a nil password. Something like this should work:

  adapter: postgresql
  database: myapp_development
  encoding: unicode
  host: localhost
  username: postgres