Red Gate forums :: View topic - Does DM have app_offline support in IIS?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Does DM have app_offline support in IIS?

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
FELKERD



Joined: 26 Jun 2013
Posts: 6

PostPosted: Wed Jun 26, 2013 10:27 pm    Post subject: Does DM have app_offline support in IIS? Reply with quote

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.
Back to top
View user's profile Send private message
Mike Upton



Joined: 11 May 2011
Posts: 142
Location: Red Gate

PostPosted: Thu Jun 27, 2013 12:24 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
FELKERD



Joined: 26 Jun 2013
Posts: 6

PostPosted: Thu Jun 27, 2013 2:06 pm    Post subject: Reply with quote

Very good! I didn't think about that. Thanks for the reply!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group