File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,36 @@ Please check the [Vagrant documentation](http://docs.vagrantup.com/v2/) for more
113
113
114
114
## Faster Rails test suites
115
115
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
+
116
140
If you're using Mac OS X or Linux you can increase the speed of Rails test suites with Vagrant's NFS synced folders.
117
141
118
142
With a NFS server installed (already installed on Mac OS X), add the following to the Vagrantfile:
119
143
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
122
146
123
147
Then
124
148
You can’t perform that action at this time.
0 commit comments