Created
September 25, 2013 00:05
-
-
Save expalmer/6693109 to your computer and use it in GitHub Desktop.
Vagrant Configuration 1.3.3
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "devPhp" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.synced_folder ".", "/Projects/Php", id: "vagrant-root" | |
config.vm.network :private_network, ip: "192.168.33.2" | |
forward_port = ->(guest, host = guest) do | |
config.vm.network :forwarded_port, | |
guest: guest, | |
host: host, | |
auto_correct: true | |
end | |
forward_port[3000] # rails | |
forward_port[9292] # rack | |
forward_port[9393] # shotgun rack | |
forward_port[4567] # sinatra | |
forward_port[1080] # mailcatcher | |
forward_port[8888] # jasmine | |
forward_port[3306] # mysql | |
forward_port[1234] # node | |
forward_port[5432] # postgresql | |
forward_port[6379] # redis | |
forward_port[80, 8080] # nginx/apache | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "2048"] | |
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "90"] | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
vb.customize [ | |
"setextradata", :id, | |
"VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1" | |
] | |
vb.customize [ | |
"setextradata", :id, | |
"VBoxInternal/Devices/ahci/0/LUN#[0]/Config/IgnoreFlush", "1" | |
] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment