Skip to content

Example Publish Script

Sitecore Ignition Contributors edited this page Jan 29, 2017 · 1 revision
$msBuildPath = "C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"
$siteName = "mysite.local"
&"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" myproject.sln /p:deployonbuild=true /p:publishprofile=Debug
Invoke-WebRequest -Uri $sitename
write-host "Success"

This will first deploy ALL of your web projects, and then hit the site with a web request to immediately spin up the app pool.

Enjoy!

Clone this wiki locally