From f06ce1d5383f69445c45813b1cb890a49728c210 Mon Sep 17 00:00:00 2001 From: Codenift Date: Wed, 16 Oct 2019 09:36:43 -0400 Subject: [PATCH] macOS Catalina support using Vagrant --- Vagrantfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index b8e34a1ef..7fe63fbd5 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -14,7 +14,12 @@ Vagrant.configure("2") do |config| config.vm.network "forwarded_port", guest: 8888, host:8888 # 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 config.vm.network "private_network", ip: "192.168.10.100"