S2K
S2K

Reputation: 1285

How to configure swap slot feature? Currently after deployment still i am seeing old version of web app

I have created a staging slot (which has different url than dev app service) for our dev environment.

Than I have enabled Auto Swap Slot feature for staging app service/slot in Application settings as:

enter image description here

The same settings is not enabled for Dev App Service.

Then in VSTS I have added deploy azure app service task with Swap feature enabled . This will deploy new version to slot:

enter image description here

Then I have added a swap slot task which will swap Stage with DEV/PROD:

enter image description here

But after deployment when i access DEV site url still I see old changes and not published one.

What configuration i am missing here?

Upvotes: 0

Views: 396

Answers (1)

Joey Cai
Joey Cai

Reputation: 20097

As junnas said, turn off the auto-swap and only slot swap manually then the above steps you provided are all right.

The staging and production slots will then be swapped over, leaving the old production version in the staging app and the latest version in the production slot.This flow supports the actual slot swaps being automated, but with manual approval.

For more details, you could refer to this article.

Upvotes: 1

Related Questions