Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What I do for a similar situation, on post-build of each of my web projects, I run a script from the Post Build event for each project, that then copies all the files to a seperate deployment folder. (it deletes all the files there first if there is any and makes any changes such as cleaning up empty or useless directories)</p> <p><strong>Step1 - Create A Post Build Script</strong></p> <p>I did mine as a batch file but you could use anything.</p> <p>In this script I have lines similar to </p> <pre><code>RMDIR "C:\Visual Studio 2010\Projects\Promotion\Deployment\FacebookApp" /S /Q xcopy "C:\Visual Studio 2010\Projects\Promotion\FacebookApp" "C:\Visual Studio 2010\Projects\Promotion\Deployment\FacebookApp\" /s /e RMDIR "C:\Visual Studio 2010\Projects\Promotion\Deployment\FacebookApp\obj" /S /Q RMDIR "C:\Visual Studio 2010\Projects\Promotion\Deployment\FacebookApp\Styles" /S /Q </code></pre> <p>Add the script to your Post-Build Event</p> <p><img src="https://i.stack.imgur.com/c2610.png" alt="PostBuildEvent"></p> <p><strong>Step 2 - Change Azure Project to point to new folders</strong></p> <p>Then I setup my Azure project to point to the deployment folder with the projects in it, instead of directly to the development ones.</p> <p><img src="https://i.stack.imgur.com/9YZ7M.png" alt="ServiceDefinition"></p> <p>In the ServiceDefinition.csdef here is my example</p> <pre><code>&lt;Site name="FacebookApp" physicalDirectory="..\Deployment\FacebookApp"&gt; &lt;Bindings&gt; &lt;Binding name="Endpoint1" endpointName="Endpoint1" hostHeader="sub.domain.com" /&gt; &lt;Binding name="Endpoint2" endpointName="Endpoint2" hostHeader="sub.domain.com" /&gt; &lt;/Bindings&gt; &lt;/Site&gt; </code></pre> <p>(Just in case you are wondering Endpoint1 is Port 80 regular http and Endpoint2 is Port 443 https)</p> <p>All I do now is rebuild my project, then hit publish on the Azure project and its all done. After waiting 30 minutes for it to deploy and update :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload