Deploy default angular application on azure from github gives error
You'll need to build your angular project after deploying the source code to Azure.
Add
"postinstall": "npm run build"
script toscripts
section from thepackage.json
as below:"scripts": { "ng": "ng", "start": "ng serve", "build": "ng build --prod", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "postinstall": "npm run build"},
Then commit this change and push it to your GitHub repo. This will build your app and places it into the
dist/
directory after all npm packages are installed.Change virtual directory from
site\wwwroot
tosite\wwwroot\dist
in the Application settings blade via Azure portal.