3 ms·
>1. How to properly do cross-platform, high-performance two-way synced folders between host and guest. Most providers only support one-way syncing. Virtualbox h
by conanbatt 9y ago
>1. How to properly do cross-platform, high-performance two-way synced folders between host and guest. Most providers only support one-way syncing. Virtualbox has shared folders, but their performance is pretty lousy and they have issues with relative symlinks. In fact, I still don't fully know what the correct setup is for a dev environment where the files are edited on the host and the guest immediately picks up on them...
I set up a TCP server, one light process watches file changes and the other side reacts to it. (Rails). It was one of my silent victories that the entire company used, but I had to do because I was the guinnea pig on the vagrant migration.
- linkregister 9y agoHow do you watch for file system changes on Linux? Spinning loop? On Windows you can register a handler/callback, is that available in Linux?
- adamtulinius 9y agoCheck out inotify (built into the kernel).
- conanbatt 9y agoI remember we tried to use something native like inotify, but it didnt work for vagrant or something. I ended up using the Listen gem.