I have an Angular App which is already deployed on Azure. I made some changes and tested the app locally using ng serve
to verify my changes. Then I used ng build
to get the artifacts in the dist
directory. I then use the Azure App Services extension in VS code to "Deploy to Web App..." and selected the dist
folder for deployment. It then gives me a message that it was successfully deployed. However, when I go to the website, I still see the old version and not my new version which I just deployed. Can someone please point out what I'm missing. Thanks!
Asked
Active
Viewed 756 times
0

Levi Lu-MSFT
- 27,483
- 2
- 31
- 43

locke14
- 1,335
- 3
- 15
- 36
-
Have you refreshed your browser cache? – PontiusTheBarbarian Jan 26 '20 at 13:29
-
I tested in incognito mode. Isn't that enough? – locke14 Jan 26 '20 at 13:49
-
Yeah that would also cover it, have you tried redeploying again? – PontiusTheBarbarian Jan 26 '20 at 13:56
-
1I found this today, could have be related? https://stackoverflow.com/a/44285953/6259188 – PontiusTheBarbarian Jan 30 '20 at 13:48
-
Redeploying didn't help. Thanks I'll check it out :) – locke14 Jan 30 '20 at 18:03
1 Answers
1
Here is something which worked for me:
- to build(
**ng build --prod**
) on the modified project to update the dist folder, - Try deploying it now to the azure web app
- Finally if still doesn't reflect , check in Azure web app using KUDU to see if the latest changes are there.
- Try restarting your web app as well.
Hope it helps.

Mohit Verma
- 5,140
- 2
- 12
- 27