Last active
December 17, 2015 14:49
-
-
Save crunchie84/5627572 to your computer and use it in GitHub Desktop.
Because i always forget: syntax to create a deployable (MsDeploy) IIS Website package from a regular static-files directory.
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 just a snippet | |
msdeploy.exe | |
-verb:sync | |
-source:iisApp="%RootPath%mywebproject" | |
-dest:package="%RootPath%Website.zip" | |
-declareParamFile:"%RootPath%\parameters.xml" | |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<parameters> | |
<!-- | |
This file contains (among others) references to web.config fields (xpath) | |
which will be 'parameterized' on package before deploy. The actual values will then be filled in based on the given deploy environment. | |
--> | |
<parameter name="IIS Web Application Name" tags="IisApp"> | |
<parameterEntry kind="ProviderPath" scope="iisApp" match="" tags="IisApp" /> | |
</parameter> | |
</parameters> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment