Popular Posts

Saturday, November 11, 2017

Deploying an Angular CLI project using VSTS Build and Release - Seth Reid Blog

Step 1: Follow John Papa's steps except don't create a web config (keep it unticked)



https://johnpapa.net/deploy-angular-to-azure-vsts-angular-cli/ 



Step 2: add the web config based on this:



Deploying an Angular CLI project using VSTS Build and Release - Seth Reid Blog:



e.g. in the root folder of the app:



<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="AngularJS Routes" stopProcessing="true">
          <match url=".*" />
          <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
          </conditions>
          <action type="Rewrite" url="/" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>


'via Blog this'

No comments:

Post a Comment