Skip to content

Commit

Permalink
Fix synced folder failing on Windows due to lack in NFS support (close
Browse files Browse the repository at this point in the history
  • Loading branch information
jshbrntt authored and lmath committed Aug 19, 2022
1 parent 11aedf9 commit 23a92db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ Vagrant.configure("2") do |config|

# Use NFS for shared folders for better performance
config.vm.network :private_network, ip: '192.168.56.56' # Uncomment to use NFS
config.vm.synced_folder '.', '/vagrant', nfs: true # Uncomment to use NFS
if Vagrant::Util::Platform.windows? then
config.vm.synced_folder '.', '/vagrant' # NFS not supported on Windows
else
config.vm.synced_folder '.', '/vagrant', nfs: true # Uncomment to use NFS
end

config.vm.network "forwarded_port", guest: 80, host: 2000 # Caddy insecure
config.vm.network "forwarded_port", guest: 8443, host: 2443 # Caddy secure
Expand Down

0 comments on commit 23a92db

Please sign in to comment.