-
Notifications
You must be signed in to change notification settings - Fork 18
/
vagrantfile
29 lines (21 loc) · 1.12 KB
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
## Optional plugins for better file-change notification (for things like React/Angular dev server change detection)
# required_plugins = %w( vagrant-fsnotify vagrant-notify-forwarder )
# required_plugins.each do |plugin|
# system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
# end
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.network "private_network", ip: "192.168.15.10"
config.vm.hostname = "my-vm-host"
## if you need to forward any ports (mySql, Mongo, etc)
# config.vm.network "forwarded_port", guest: 4200, host: 4200
## Standard file mount (not as reliable as NFS)
# config.vm.synced_folder "./code", "/var/code", :mount_options => ["dmode=777", "fmode=666"]
## NFS file mount. Make sure to comment out standard mount if using NFS
## Will prompt for an Administrative password
config.vm.synced_folder "./code", "/var/code", :nfs => { :mount_options => ["dmode=777","fmode=666"] }
## Configure the provisioner script
config.vm.provision :shell, :path => "provisioner.sh"
end