Skip to content

Instantly share code, notes, and snippets.

@jessedearing
Created July 14, 2010 15:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessedearing/475606 to your computer and use it in GitHub Desktop.
Save jessedearing/475606 to your computer and use it in GitHub Desktop.
[Array]$arguments = "-verb:sync", "-source:contentPath=`"$web_staging_directory`"", "-dest:contentPath=`"\\$Server\$share\$appname\$web_project_name`""
$proc = Start-Process $msdeploy -ArgumentList $arguments -NoNewWindow -Wait -PassThru
if($proc.ExitCode -ne 0) {
throw "Failed to deploy"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment