Skip to content
Johan Leino edited this page Aug 6, 2013 · 3 revisions

Deploying to remote locations

Note: this example assumes you have all the files used in the same directory (.\). That is not at all a requirement though.

This example deploys to an IIS site/application located on two remote servers.


Import-Module .\WDP.Deploy.psm1

Set-Properties @{
    DestinationPublishSettingsFiles = @(".\serverA.publishsettings",".\serverB.publishsettings")
}

Invoke-Deploy .\xample.zip

The server/s that host the web application that we're deploying to are remote and we therefore need to connect to them via DestinationPublishSettings files that will look something like this: