Created
June 30, 2013 17:30
-
-
Save otakusid/5896066 to your computer and use it in GitHub Desktop.
How to create and deploy MSDeploy package using precompiled ASP.NET Web Application
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
rem Create package using manifest: | |
msdeploy -verb:sync -source:manifest="G:\CI_on_DVCS\PackageManifest.xml" -dest:package="g:\CI_on_DVCS\Package.zip" | |
rem Install package using manifest: | |
msdeploy -verb:sync -source:package="g:\CI_on_DVCS\Package.zip" -dest:manifest="G:\CI_on_DVCS\PackageInstallationManifest.xml",computerName=AMI,username="UserName",password="Password" | |
rem Create package using command line: | |
msdeploy -verb:sync -source:contentPath="g:\CI_on_DVCS\Src\" -dest:package="g:\CI_on_DVCS\Package.zip" | |
rem Install package using command line: | |
msdeploy -verb:sync -source:package="g:\CI_on_DVCS\Package.zip" -dest:contentPath="CI_on_DVCS",computerName=AMI,username="UserName",password="Password" | |
rem NOTE: -source:contentPath - Path to precompiled ASP.NET Web Application. | |
rem NOTE: -dest:contentPath - Name of the IIS website on the destination host. | |
rem PackageManifest.xml: | |
rem <?xml version="1.0" encoding="utf-8"?> | |
rem <sitemanifest> | |
rem <contentPath path="g:\Src\" /> | |
rem </sitemanifest> | |
rem PackageInstallationManifest.xml: | |
rem <?xml version="1.0" encoding="utf-8"?> | |
rem <sitemanifest> | |
rem <contentPath path="CI_on_DVCS" /> | |
rem </sitemanifest>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment