From a471b8e494b46fd85022b2105eee50fec4f84996 Mon Sep 17 00:00:00 2001 From: Jefferson Date: Thu, 5 Feb 2015 10:51:08 -0200 Subject: #268 Added a condition on vagrant file to apply synced folder type rsync only on Windows --- Vagrantfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Vagrantfile') diff --git a/Vagrantfile b/Vagrantfile index a05e672e..db24483d 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -57,7 +57,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end config.vm.network :forwarded_port, guest: 3333, host: 3333 # do NOT add host_ip in this line. It is not necessary - config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/" + + if /mswin|mingw/ =~ RUBY_PLATFORM + config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/" + end + config.vm.provider "virtualbox" do |v| v.memory = 1024 end -- cgit v1.2.3