Skip to content

Instantly share code, notes, and snippets.

@bakins
Created September 16, 2013 16:57
Show Gist options
  • Select an option

  • Save bakins/6583378 to your computer and use it in GitHub Desktop.

Select an option

Save bakins/6583378 to your computer and use it in GitHub Desktop.
Horrible hack for some local heroku test environments
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.ssh.forward_agent = true
config.vm.provision :shell, :inline => <<EOF
apt-get update
apt-get install -y git-core redis-server curl libssl0.9.8 make g++
mkdir -p -m 0550 /root/.ssh/
echo -e "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
cd /home/vagrant
if [ ! -d heroku-buildpack-nodejs ]; then
git clone https://github.com/heroku/heroku-buildpack-nodejs.git
fi
cd /vagrant
/home/vagrant/heroku-buildpack-nodejs/bin/compile /vagrant
EOF
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment