Skip to content

Instantly share code, notes, and snippets.

@dunston
Created May 29, 2012 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dunston/2829896 to your computer and use it in GitHub Desktop.
Save dunston/2829896 to your computer and use it in GitHub Desktop.
Html for my app_offline.htm
<!doctype html>
<html>
<head>
<title>Website is down for maintenance</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
(function ($, win){
$(function (){
var checkSite = function (){
$.get("/").success(function (){
win.location.reload(true);
}).error(function (){
});
}
win.setInterval($.proxy(checkSite, this), 10000);
});
} (jQuery, window));
</script>
</head>
<body>
<h1>Website is down for maintenance and will be back within minutes</h1>
<p>
The page will automatically refresh, when the site is back online.
</p>
</body>
</html>
"c:\Program Files\IIS\Microsoft Web Deploy V2\msdeploy.exe" -verb:sync -source:contentPath="%system.teamcity.build.checkoutDir%\Build\app_offline.htm" -dest:contentPath="Default Web Site/app_offline.htm",computerName=computername,UserName=username,Password=password -allowUntrusted=true -enableRule:DoNotDeleteRule
"c:\Program Files\IIS\Microsoft Web Deploy V2\msdeploy.exe" -verb:delete -dest:contentPath="Default Web Site/app_offline.htm",computerName=computername,UserName=username,Password=password -allowUntrusted=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment