2015-04-11 20:22:15 -05:00
|
|
|
Vagrant.configure("2") do |config|
|
2015-09-12 17:38:15 -07:00
|
|
|
|
|
|
|
config.hostmanager.enabled = true
|
|
|
|
config.hostmanager.manage_host = true
|
|
|
|
|
2015-05-25 22:23:15 -07:00
|
|
|
config.vm.box = 'laravel/homestead'
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.cpus = 4
|
2015-06-14 14:24:52 +01:00
|
|
|
v.memory = 2048
|
2015-05-25 22:23:15 -07:00
|
|
|
end
|
2015-04-11 20:22:15 -05:00
|
|
|
|
2015-09-12 17:38:15 -07:00
|
|
|
config.vm.define 'default' do |node|
|
2015-09-19 20:17:27 -07:00
|
|
|
node.vm.hostname = 'ponyfm-dev.poni'
|
2015-09-12 17:38:15 -07:00
|
|
|
node.vm.network :private_network, ip: "192.168.33.11"
|
2015-09-19 20:17:27 -07:00
|
|
|
node.hostmanager.aliases = %w(api.ponyfm-dev.poni)
|
2015-09-12 17:38:15 -07:00
|
|
|
end
|
|
|
|
|
2015-05-25 22:23:15 -07:00
|
|
|
config.vm.synced_folder ".", "/vagrant", type: "nfs"
|
|
|
|
|
|
|
|
config.vm.provision "shell", path: "vagrant/install.sh"
|
|
|
|
|
2015-06-16 15:12:43 +01:00
|
|
|
config.vm.network "forwarded_port", guest: 3306, host: 33060
|
|
|
|
|
2015-05-25 22:23:15 -07:00
|
|
|
config.vm.synced_folder "../pony.fm.files", "/vagrant-files"
|
|
|
|
config.bindfs.bind_folder "/vagrant", "/vagrant"
|
2015-05-02 02:48:57 -07:00
|
|
|
end
|