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).
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.