Does DM have app_offline support in IIS?

Automated deployment for web applications and databases

Moderators: Mike Upton, justin.caldicott, Sean.newham, csmith, chirayu, DavidSimner, david.conlin

Does DM have app_offline support in IIS?

Postby FELKERD » Wed Jun 26, 2013 10:27 pm

When we deploy our package to the IIS website is there any app_offline.htm file placed into the directory while the files are copying so users don't get error messages? Just curious to know how Deployment Manager deals with active web sites where users are trying to access during a deployment.
FELKERD
 
Posts: 6
Joined: Wed Jun 26, 2013 10:24 pm

Postby Mike Upton » Thu Jun 27, 2013 12:24 pm

The default behaviour of Deployment Manager when deploying IIS websites actually avoids this problem altogether. It does not copy the new content over the existing site; instead, it creates a new directory containing the new content, and then reconfigures the site in IIS to serve content from the new physical directory. This means that the deployment is effectively an atomic operation as far as your users are concerned.

Deployment Manager's IIS deployment behaviour, and ways of configuring it, are described in more detail here.

However, if you still need to do in-place deployment (by setting the RedGatePackageDirectoryPath variable) and use an app_offline.htm, you could use PreDeploy.ps1 and PostDeploy.ps1 scripts to add that behaviour to the deployment.
Mike Upton

Software Engineer
Red Gate Software Ltd.
Mike Upton
 
Posts: 157
Joined: Wed May 11, 2011 8:04 am
Location: Red Gate

Postby FELKERD » Thu Jun 27, 2013 2:06 pm

Very good! I didn't think about that. Thanks for the reply!
FELKERD
 
Posts: 6
Joined: Wed Jun 26, 2013 10:24 pm


Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests