mirror of https://github.com/flarum/flarum
Revert back to using NFS on Windows, too (encouraging the use of a plugin).
parent
df71ca5cf7
commit
165bb7ef01
|
@ -97,15 +97,15 @@ Vagrant.configure("2") do |config|
|
||||||
# Create a static IP
|
# Create a static IP
|
||||||
config.vm.network :private_network, ip: server_ip
|
config.vm.network :private_network, ip: server_ip
|
||||||
|
|
||||||
# We can use NFS if we're not running on Windows
|
# A private dhcp network is required for NFS to work (on Windows hosts, at least)
|
||||||
share_opts = { :id => "core" }
|
# Windows users should use the winnfsd plugin: https://github.com/GM-Alex/vagrant-winnfsd
|
||||||
unless Vagrant::Util::Platform.windows?
|
config.vm.network :private_network, type: "dhcp"
|
||||||
share_opts[:nfs] = true
|
|
||||||
share_opts[:mount_options] = ['nolock,vers=3,udp,noatime,actimeo=1']
|
|
||||||
end
|
|
||||||
|
|
||||||
# Configure the shared folder
|
# Use NFS for the shared folder
|
||||||
config.vm.synced_folder ".", "/vagrant", share_opts
|
config.vm.synced_folder ".", "/vagrant",
|
||||||
|
id: "core",
|
||||||
|
:nfs => true,
|
||||||
|
:mount_options => ['nolock,vers=3,udp,noatime,actimeo=1']
|
||||||
|
|
||||||
# If using VirtualBox
|
# If using VirtualBox
|
||||||
config.vm.provider :virtualbox do |vb|
|
config.vm.provider :virtualbox do |vb|
|
||||||
|
|
Loading…
Reference in New Issue