-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
22 lines (16 loc) · 1.01 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$WEB_PROJECT_FOLDER = "WebProject"
Vagrant.configure("2") do |config|
config.vm.box = "vagrant-mono"
config.vm.box_url = "https://github.com/chilimangoes/vagrant-mono/releases/download/3.2.3/package.box"
config.vm.provider :virtualbox do |vb|
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "512"]
end
config.vm.provision :shell, :path => "build-support/provisioning/install-nginx.sh"
config.vm.provision :shell, :path => "build-support/provisioning/install-fastcgi-mono.sh"
config.vm.provision :shell, :path => "build-support/provisioning/configure-nginx.sh"
config.vm.provision :shell, :path => "build-support/provisioning/configure-fastcgi-mono.sh"
config.vm.provision :shell, :path => "build-support/provisioning/configure-website-dev.sh", args: $WEB_PROJECT_FOLDER
config.mount_commands.command "sudo mount --bind /vagrant/src/" + $WEB_PROJECT_FOLDER + "/ /var/wwwroot/"
config.vm.network :forwarded_port, guest: 80, host: 8093
end