-
-
Save anonymous/7cca95da3cfc22de5333 to your computer and use it in GitHub Desktop.
vagrantfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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