Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.

Latest commit

 

History

History
53 lines (40 loc) · 1.51 KB

samples.md

File metadata and controls

53 lines (40 loc) · 1.51 KB

Publish Samples

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 have wwwroot.

Standard MSDeploy publish

.\Properties\PublishProfiles\sayedkdemo2.ps1 -packOutput $packOutput -publishProperties @{
     'WebPublishMethod'='MSDeploy'
     'MSDeployServiceURL'='sayedkdemo2.scm.azurewebsites.net:443';
'DeployIisAppPath'='sayedkdemo2';'Username'='$sayedkdemo2';'Password'="$env:PublishPwd"} -Verbose

Standard file system publish

.\Properties\PublishProfiles\sayedkdemo2.ps1 -packOutput $packOutput -publishProperties @{
	'WebPublishMethod'='FileSystem'
	'publishUrl'='C:\temp\publish\new'
	} -Verbose

Skipping files

MSDeploy publish skipping two files

.\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

File system publish skipping two files

.\Properties\PublishProfiles\sayedkdemo2.ps1 -packOutput $packOutput -publishProperties @{
	'WebPublishMethod'='FileSystem'
	'publishUrl'='C:\temp\publish\new'
 	'ExcludeFiles'=@(
       @{'Filepath'='.*.cmd'},
		@{'Filepath'='wwwroot\test.txt'}
)} -Verbose