mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	vagrant: Switch Virtualbox to use NFS for syncing files.
This seems to help with frequent virtualbox guest crashes that we've been having on Macs recently. Thanks to Umair Khan for figuring this out.
This commit is contained in:
		
							
								
								
									
										3
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
								
							@@ -30,7 +30,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 | 
				
			|||||||
  host_ip_addr = "127.0.0.1"
 | 
					  host_ip_addr = "127.0.0.1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config.vm.synced_folder ".", "/vagrant", disabled: true
 | 
					  config.vm.synced_folder ".", "/vagrant", disabled: true
 | 
				
			||||||
  config.vm.synced_folder ".", "/srv/zulip"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  vagrant_config_file = ENV['HOME'] + "/.zulip-vagrant-config"
 | 
					  vagrant_config_file = ENV['HOME'] + "/.zulip-vagrant-config"
 | 
				
			||||||
  if File.file?(vagrant_config_file)
 | 
					  if File.file?(vagrant_config_file)
 | 
				
			||||||
@@ -81,6 +80,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 | 
				
			|||||||
        lxc.backingstore = 'dir'
 | 
					        lxc.backingstore = 'dir'
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					    config.vm.synced_folder ".", "/srv/zulip"
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config.vm.provider "virtualbox" do |vb, override|
 | 
					  config.vm.provider "virtualbox" do |vb, override|
 | 
				
			||||||
@@ -88,6 +88,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 | 
				
			|||||||
    # It's possible we can get away with just 1.5GB; more testing needed
 | 
					    # It's possible we can get away with just 1.5GB; more testing needed
 | 
				
			||||||
    vb.memory = 2048
 | 
					    vb.memory = 2048
 | 
				
			||||||
    vb.cpus = 2
 | 
					    vb.cpus = 2
 | 
				
			||||||
 | 
					    config.vm.synced_folder ".", "/srv/zulip", type: "nfs"
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config.vm.provider "vmware_fusion" do |vb, override|
 | 
					  config.vm.provider "vmware_fusion" do |vb, override|
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user