Skip to content

Instantly share code, notes, and snippets.

@petetnt
Last active Sep 2, 2015
Embed
What would you like to do?
How to run Grunt after pushing changes to your Azure site
  npm install -g azure-cli
  • Create .deployment and deploy.cmd files
  cd your/folder/
  azure site deploymentscript --node --sitePath .
  • Add the following to deploy.cmd under :deployment
:: 4. Run grunt
IF EXIST "%DEPLOYMENT_TARGET%\Gruntfile.js" (
  pushd "%DEPLOYMENT_TARGET%"
  call :ExecuteCmd grunt
  IF !ERRORLEVEL! NEQ 0 goto error
  popd
)
  • Commit your changes
git commit deploy.cmd -m "Updated deploy.cmd to include Grunt"
  • Push your changes
git push azure master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment