symfony - Vagrant 2 way folder sync -


i've setup vagrant box runs webserver host symfony2 application. works fine except folder synchronisation.

i tried 2 things:

  1. config.vm.synced_folder localfolder, hostfolder
  2. config.vm.synced_folder localfolder, hostfolder, type="rsync"

option 1: first option works, don't know how file shared works. files copied in both way, application super slow. symfony generating cache files wich might issue, don't know how troubleshoot , see happening.

option 2: sync done in 1 way (from local machine vagrant box), covers of case , fast. issue when use symfony command line on vagrant box generate files not copied on local machine.

my question is: best way proceed 2 ways syncing? option 1 how can (as might issue) exclude files syncing. option 2 how can make sure changes on remote copied local machine?

thanks!

if default synced folder strategy (virtualbox shared folders, imagine) slow use case, can choose different 1 and, if need, maintain two-way sync:

  • if host os linux or mac os x, can go nfs.
  • if host os windows can instead choose smb.

rsync fast but, you've pointed out, one-way only.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -