-
Notifications
You must be signed in to change notification settings - Fork 55
/
Vagrantfile
34 lines (25 loc) · 921 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# virtualbox config
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# vmware fusion config
config.vm.provider "vmware_fusion" do |v, o|
o.vm.box = "precise64_vmware"
o.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
end
# vmware workstation config
config.vm.provider "vmware_workstation" do |v, o|
o.vm.box = "precise64_vmware"
o.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
end
# set the hostname
config.vm.hostname = "yii-app"
# enable port forwarding
config.vm.network "forwarded_port", guest: 80, host: 8080
# set up provisioning
config.vm.provision "shell", :path => "provision/bootstrap.sh"
# set file permissions
config.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777", "fmode=666"]
end