Skip to content

Instantly share code, notes, and snippets.

@petetnt
Last active September 2, 2015 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petetnt/75017f285e40a2583180 to your computer and use it in GitHub Desktop.
Save petetnt/75017f285e40a2583180 to your computer and use it in GitHub Desktop.
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