0

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!

5
  • Have you refreshed your browser cache? Commented Jan 26, 2020 at 13:29
  • I tested in incognito mode. Isn't that enough? Commented Jan 26, 2020 at 13:49
  • Yeah that would also cover it, have you tried redeploying again? Commented Jan 26, 2020 at 13:56
  • 1
    I found this today, could have be related? stackoverflow.com/a/44285953/6259188 Commented Jan 30, 2020 at 13:48
  • Redeploying didn't help. Thanks I'll check it out :) Commented Jan 30, 2020 at 18:03

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.