Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.