Skip to content

Instantly share code, notes, and snippets.

@ishouvik
Last active June 4, 2016 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishouvik/c120699e1a8e34a6d349ee5d5915bafd to your computer and use it in GitHub Desktop.
Save ishouvik/c120699e1a8e34a6d349ee5d5915bafd to your computer and use it in GitHub Desktop.
Vagrant file for rbenv rails
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "<box name>"
# Create port fowarding between guest and host
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a private network, which allows host-only access to the machine
config.vm.network "private_network", ip: "<ip address>"
# Create additional synced directories
config.vm.synced_folder "./", "/home/vagrant/apps/current/store"
config.vm.provider "virtualbox" do |vb|
vb.memory = "512"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment