Skip to content

Commit 8c0e821

Browse files
authored
Use of WEBSITE_DISABLE_SCM_SEPARATION with Local Cache
Noticed App Service showing deployed content immediately on the App Service without a restart when using Local Cache, in the presence of the App Setting - 'WEBSITE_DISABLE_SCM_SEPARATION = true'. If the App restarts in such a case - it reverts to files before the deployment, since the deployed files are not written to persistent storage.
1 parent a2d037c commit 8c0e821

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/app-service/overview-local-cache.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ As part of the step that copies the storage content, any folder that is named re
121121
### How to flush the local cache logs after a site management operation?
122122
To flush the local cache logs, stop and restart the app. This action clears the old cache.
123123

124+
### Why does App Service starts showing previously deployed files after a restart when Local Cache is enabled?
125+
In case App Service starts showing previously deployed files on a restart, check for the precense of the App Setting - '[WEBSITE_DISABLE_SCM_SEPARATION=true](https://github.com/projectkudu/kudu/wiki/Configurable-settings#use-the-same-process-for-the-user-site-and-the-scm-site)'. After adding this setting any deployments via KUDU start writing to the local VM instead of the persistent storage. Best practices mentioned above in this article should be leveraged, wherein the deployments should always be done to the staging slot which does not have Local Cache enabled.
126+
124127
## More resources
125128

126-
[Environment variables and app settings reference](reference-app-settings.md)
129+
[Environment variables and app settings reference](reference-app-settings.md)

0 commit comments

Comments
 (0)