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:
- config.vm.synced_folder localfolder, hostfolder
- 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:
rsync fast but, you've pointed out, one-way only.
Comments
Post a Comment