Last post Jun 17, 2020 05:44 AM by robby32
Jun 11, 2020 03:54 AM|robby32|LINK
I have had issues with assemblies on Azure app service not being updated. I found that by changing the setting
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer> and setting to
False the assembly is updated. Its the same as setting "remove additional files at destination" under publish through visual studio.
But i am publishing to a deployment slot. Once i swap to the production does the swap action replace all files on the production server and do a similar action ?
Jun 12, 2020 05:40 AM|Yang Shen|LINK
Once i swap to the production does the swap action replace all files on the production server and do a similar action ?
If you mean whether the original files in your prod slot will be swapped when you swap from stage to prod, then the answer is NO.
The processes of "publish from other resource(from VS or Azure DevOps for example) to Azure App Service" and "swap from one slot to another in Azure" are totally different.
Check What happens during a swap and you will find that the target slot, production slot in your case, never got changed until the end of this
"If all instances on the source slot are warmed up successfully, swap the two slots by switching the routing rules for the two slots."
"The target slot remains online while the source slot is being prepared and warmed up, regardless of where the swap succeeds or fails."
In conclusion, the original files will not be deleted, updated or swapped, the whole slot is the one who got swapped.
Jun 17, 2020 05:44 AM|robby32|LINK
tried the suggestions. worked, managed to resolve as suggested.
read the link : What happens during a slot swap. (very helpful)