Skip to content

Commit e757ff7

Browse files
committed
document the new rsync mechanism for sharing folders
1 parent c79f40c commit e757ff7

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,36 @@ Please check the [Vagrant documentation](http://docs.vagrantup.com/v2/) for more
113113

114114
## Faster Rails test suites
115115

116+
The default mechanism for sharing folders is convenient and works out the box in
117+
all Vagrant versions, but there are a couple of alternatives that are more
118+
performant.
119+
120+
### rsync
121+
122+
Vagrant 1.5 implements a [sharing mechanism based on rsync](https://www.vagrantup.com/blog/feature-preview-vagrant-1-5-rsync.html)
123+
that dramatically improves read/write because files are actually stored in the
124+
guest. Just throw
125+
126+
config.vm.synced_folder '.', '/vagrant', type: 'rsync'
127+
128+
to the _Vagrantfile_ and either rsync manually with
129+
130+
vagrant rsync
131+
132+
or run
133+
134+
vagrant rsync-auto
135+
136+
for automatic syncs. See the post linked above for details.
137+
138+
### NFS
139+
116140
If you're using Mac OS X or Linux you can increase the speed of Rails test suites with Vagrant's NFS synced folders.
117141

118142
With a NFS server installed (already installed on Mac OS X), add the following to the Vagrantfile:
119143

120-
config.vm.synced_folder ".", "/vagrant", type: "nfs"
121-
config.vm.network "private_network", ip: "192.168.50.4" # ensure this is available
144+
config.vm.synced_folder '.', '/vagrant', type: 'nfs'
145+
config.vm.network 'private_network', ip: '192.168.50.4' # ensure this is available
122146

123147
Then
124148

0 commit comments

Comments
 (0)