macOS Catalina support using Vagrant
This commit is contained in:
parent
7701d0f438
commit
f06ce1d538
|
@ -14,7 +14,12 @@ Vagrant.configure("2") do |config|
|
||||||
config.vm.network "forwarded_port", guest: 8888, host:8888
|
config.vm.network "forwarded_port", guest: 8888, host:8888
|
||||||
|
|
||||||
# make sure we are using nfs (doesn't work out of the box with debian)
|
# make sure we are using nfs (doesn't work out of the box with debian)
|
||||||
config.vm.synced_folder ".", "/vagrant", type: "nfs"
|
nfsPath = "."
|
||||||
|
# macOS Catalina support
|
||||||
|
if Dir.exist?("/System/Volumes/Data")
|
||||||
|
nfsPath = "/System/Volumes/Data" + Dir.pwd
|
||||||
|
end
|
||||||
|
config.vm.synced_folder nfsPath, "/vagrant", type: "nfs"
|
||||||
# private network for nfs
|
# private network for nfs
|
||||||
config.vm.network "private_network", ip: "192.168.10.100"
|
config.vm.network "private_network", ip: "192.168.10.100"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue