Skip to content

Instantly share code, notes, and snippets.

@wolstena
Created October 25, 2013 22:20
Show Gist options
  • Save wolstena/7162707 to your computer and use it in GitHub Desktop.
Save wolstena/7162707 to your computer and use it in GitHub Desktop.
msdeploy example
msdeploy -verb:sync -source:appHostConfig="music_stage_aliases" -dest:="music_aliases",computerName="web5" -enableLink:AppPoolExtension -enableLink:ContentExtension -replace:objectName=site,targetAttributeName=id,replace=20 -replace:objectName=binding,targetAttributeName=bindingInformation,match=10\.1\.11\.,replace=10.1.15. -replace:objectName=binding,targetAttributeName=bindingInformation,match=stage\.web1\.,replace=web5. -replace:objectName=application,scopeAttributeName=applicationPool,match=_stage_,replace=_ -replace:objectName=virtualDirectory,scopeAttributeName=physicalPath,match=_stage_,replace=_ -replace:objectName=filePath,scopeAttributeName=path,match="web.config",replace="web.stage.config" -replace:objectName=filePath,scopeAttributeName=path,match="web.prod.config",replace="web.config" -whatif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment