Efter spending hour to figure this out I found a solution. Thought I share the solution if somebody have similar problem. Or if you know a better solution…
So there a two parts:
Sync the folders
Watch the source folder for changes
sync the folders
After trying to get “symbolic link” to work with Vagrant, I decided to use rsync instead.
Rsync works in the terminal and is easy to use.
The command:
rsync options source destination
My command that exclude files and delete files in target dir if I delete files in source (–delete):