Skip to content

Commit

Permalink
fix the initial manifest logic
Browse files Browse the repository at this point in the history
  • Loading branch information
suwatch committed Apr 21, 2014
1 parent e15d090 commit b375266
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Kudu.Services/SourceControl/LiveScmController.cs
Expand Up @@ -99,13 +99,18 @@ public void Delete(int deleteWebRoot = 0, int ignoreErrors = 0)
// real semantic is more to reset the site to a fully clean state
FileSystemHelpers.DeleteDirectorySafe(_environment.DiagnosticsPath, ignoreErrors != 0);
}
}
using (_tracer.Step("Updating initial deployment manifest"))
// Delete first deployment manifest since it is no longer needed
FileSystemHelpers.DeleteFileSafe(Path.Combine(_environment.SiteRootPath, Constants.FirstDeploymentManifestFileName));
}
else
{
// The active deployment manifest becomes the baseline initial deployment manifest
// When SCM is reconnected, the new deployment will use this manifest to clean the wwwroot
SaveInitialDeploymentManifest();
using (_tracer.Step("Updating initial deployment manifest"))
{
// The active deployment manifest becomes the baseline initial deployment manifest
// When SCM is reconnected, the new deployment will use this manifest to clean the wwwroot
SaveInitialDeploymentManifest();
}
}
using (_tracer.Step("Deleting deployment cache"))
Expand Down

0 comments on commit b375266

Please sign in to comment.