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!
-
Have you refreshed your browser cache?PontiusTheBarbarian– PontiusTheBarbarian2020-01-26 13:29:06 +00:00Commented Jan 26, 2020 at 13:29
-
I tested in incognito mode. Isn't that enough?locke14– locke142020-01-26 13:49:51 +00:00Commented Jan 26, 2020 at 13:49
-
Yeah that would also cover it, have you tried redeploying again?PontiusTheBarbarian– PontiusTheBarbarian2020-01-26 13:56:16 +00:00Commented Jan 26, 2020 at 13:56
-
1I found this today, could have be related? stackoverflow.com/a/44285953/6259188PontiusTheBarbarian– PontiusTheBarbarian2020-01-30 13:48:25 +00:00Commented Jan 30, 2020 at 13:48
-
Redeploying didn't help. Thanks I'll check it out :)locke14– locke142020-01-30 18:03:55 +00:00Commented Jan 30, 2020 at 18:03
Add a comment
|
1 Answer
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.