News for hackers. Stuff that matters.
Re:Things I Wish I'd Known Before Using Vagrant by conanbatt on Friday October 27, 2017 @09:05AM (#15567885)
>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.

Re:Things I Wish I'd Known Before Using Vagrant by linkregister on Friday October 27, 2017 @12:16PM (#15569799)
How do you watch for file system changes on Linux? Spinning loop?

On Windows you can register a handler/callback, is that available in Linux?

Re:Things I Wish I'd Known Before Using Vagrant by conanbatt on Friday October 27, 2017 @01:45PM (#15570599)
I remember we tried to use something native like inotify, but it didnt work for vagrant or something. I ended up using the Listen gem.
Re:Things I Wish I'd Known Before Using Vagrant by adamtulinius on Friday October 27, 2017 @12:30PM (#15569905)
Check out inotify (built into the kernel).