Created
May 29, 2012 18:27
-
-
Save dunston/2829896 to your computer and use it in GitHub Desktop.
Html for my app_offline.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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