title: How to manage project in vagrant with the vendor to be outside of synced folder
body: <p>For speeding up symfony in vagrant + virtualbox, I had been moved the directory vendor outside of the vagrant sync folder.</p>
  
  <p>My project structure looks like below:  </p>
  
  <pre><code>symfony-demo  
      |
      |---project
      |      |---app
      |      |---bin
      |      |---config
      |      |---src
      |      |---web
      |
      |---vendor
  </code></pre>
  
  <p>The root in nginx is /www/html/symfony-demo/project/web.<br>
  And the vagrant sync folder is  <code>"F:/project/symfony-demo/project",  "/www/html/symfony-demo/project"</code></p>
  
  <p>When using git to manage project. It will occur some troubles like that the local project is to be updated. But in the vagrant, the vendor isn't to be updated. I need manually update it in the vagrant. </p>
  
  <p>It is hard to develop. Do you have any suggestions?</p>