These samples rely on the following.
- set
$env:PublishPwd
env var - Publish using VS and set the
$packOutput
variable before calling the samples. Note this should not havewwwroot
.
.\Properties\PublishProfiles\sayedkdemo2.ps1 -packOutput $packOutput -publishProperties @{
'WebPublishMethod'='MSDeploy'
'MSDeployServiceURL'='sayedkdemo2.scm.azurewebsites.net:443';
'DeployIisAppPath'='sayedkdemo2';'Username'='$sayedkdemo2';'Password'="$env:PublishPwd"} -Verbose
.\Properties\PublishProfiles\sayedkdemo2.ps1 -packOutput $packOutput -publishProperties @{
'WebPublishMethod'='FileSystem'
'publishUrl'='C:\temp\publish\new'
} -Verbose
.\Properties\PublishProfiles\sayedkdemo2.ps1 -packOutput $packOutput -publishProperties @{
'WebPublishMethod'='MSDeploy'
'MSDeployServiceURL'='sayedkdemo2.scm.azurewebsites.net:443';`
'DeployIisAppPath'='sayedkdemo2';'Username'='$sayedkdemo2';'Password'="$env:PublishPwd"
'ExcludeFiles'=@(
@{'Filepath'='wwwroot\\test.txt'},
@{'Filepath'='wwwroot\\_references.js'}
)} -Verbose
.\Properties\PublishProfiles\sayedkdemo2.ps1 -packOutput $packOutput -publishProperties @{
'WebPublishMethod'='FileSystem'
'publishUrl'='C:\temp\publish\new'
'ExcludeFiles'=@(
@{'Filepath'='.*.cmd'},
@{'Filepath'='wwwroot\test.txt'}
)} -Verbose