Skip to content

Instantly share code, notes, and snippets.

/vagrantfile Secret

Created November 20, 2014 18:38
Show Gist options
  • Save anonymous/7cca95da3cfc22de5333 to your computer and use it in GitHub Desktop.
Save anonymous/7cca95da3cfc22de5333 to your computer and use it in GitHub Desktop.
vagrantfile
Vagrant.configure("2") do |config|
# 64-bit box, feel free to switch this to trusty32 if necessary
config.vm.box = "ubuntu/trusty64"
# Sync our Vagrant Data and WWW folders to the guest machine
config.vm.synced_folder "C:/Users/eric/Documents/GitHub/Vagrant", "/home/vagrant/data/"
config.vm.synced_folder "C:/Users/eric/Documents/GitHub/", "/home/vagrant/www/"
# Forward host 8080 to the Apache server
config.vm.network :public_network, ip: "192.168.2.41"
# Change virtualbox options
config.vm.provider :virtualbox do |vb|
vb.name = "PHP Machine"
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--ostype", "Ubuntu_64"]
end
# Run setup script (Apache, PHP)
config.vm.provision "shell", :path => 'setup.sh'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment