Skip to content

example how to avoid slow mounts and slow ruby triggered rsyncs

Notifications You must be signed in to change notification settings

pansen/vagrant_sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Faster Vagrant Sync

Problem

All kinds of shared folders into vms or containers on non-linux machines are slow. Using vagrant rsync-auto is slow as well as the surrounding ruby layer creates up to many seconds delay before a sync is started.

Goal

Create a fast one way sync solution.

Solution

We just use the Rust written watchexec, which is super fast in detecting local filesystem changes. The provided script sync_sandbox.sh is a working example for two symfony projects, with the typical includes and excludes.

Howto

TODO / Not included

Since this is a one-way-sync, one important thing is missing. In that moment, when you call composer install inside of your sandbox, you need to sync the vendor dir back to the local machine to have all files in place for proper development and debugging. Usually this will be done in the provisioner (Ansible, Chef, Salt, ...) as the composer call will be triggered there as well.

About

example how to avoid slow mounts and slow ruby triggered rsyncs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages