title: Azure Git deploy into site folder not wwwroot
body: <p>This would seem to be an easy task although I can't find the solution. I've recently started a Laravel 4 project which needs to be hosted on Azure. I've linked Azure to deploy from bitbucket when a change is made. This however pushes the files into "wwwroot" folder in Azure (the public folder). Some of the framework files shouldn't be in the public folder therefore I would like to push to the parent folder "site".</p>
  
  <p>After some research I discovered you can use .deployment file to config deployment options (<a href="https://github.com/projectkudu/kudu/wiki/Deployment-hooks">https://github.com/projectkudu/kudu/wiki/Deployment-hooks</a>)</p>
  
  <p>So I tried .deployment file:</p>
  
  <pre><code>[config]
  DEPLOYMENT_TARGET = C:\DWASFiles\Sites\SITENAME\VirtualDirectory0\site
  </code></pre>
  
  <p>Unfortunately this causes an error:</p>
  
  <p><em>Source and destination directories cannot be sub-directories of each other</em></p>
  
  <p>This would be due to the fact the repository folder sits in the site folder aswell. If I change the deployment file to:</p>
  
  <pre><code>[config]
  DEPLOYMENT_SOURCE = C:\DWASFiles\Sites\SITENAME\VirtualDirectory0\repo
  DEPLOYMENT_TARGET = C:\DWASFiles\Sites\SITENAME\VirtualDirectory0\site
  </code></pre>
  
  <p>It runs without errors but it pushes nothing as the repo folder is empty, I guess if I could get Azure to put the files into \repo instead \site\repository everything would be fine.</p>
  
  <p>Maybe I'm over complicating things and I'd really appreciate any advice. Worst case I can just push to the "wwwroot" folder and use a web.config to fix things.</p>