Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (43 sloc) 2.25 KB
These are just quick cookbooks that can be used with Vagrant.
1) Install and setup Vagrant with a base box.
gem install vagrant
vagrant box add base
2) Get egra (
git clone git://
3) Get egra-cookbooks (
git clone git://
4) Setup a Vagrantfile inside of egra
cd egra
vim Vagrantfile
Put this inside Vagrantfile: do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at
# Every Vagrant virtual environment requires a box to build off of. = "base"
# The url from where the '' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = ""
# Boot with a GUI so you can see the screen. (Default is headless)
# config.vm.boot_mode = :gui
# Assign this VM to a host only network IP, allowing you to access it
# via the IP. ""
# Forward a port from the guest to the host, which allows for outside
# computers to access the VM, whereas host only networking does not.
config.vm.forward_port "http", 80, 1234
# Enable provisioning with chef solo, specifying a cookbooks path (relative
# to this Vagrantfile), and adding some recipes and/or roles.
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "../egra-cookbooks"
chef.add_recipe "egra"
# In order for nfs to work, you have to install nfsd locally, on OSX
# This is there by default. On windows, nfs shares won't work
config.vm.share_folder("egra-public", "/srv/egra", ".", :nfs => true)
5) Run the following
vagrant up
6) Wait about 7 minutes. From then on use vagrant reload.
7) You should now have a box running node, nginx, npm, and coffee-script. It should be auto-compiling your .coffees.