- Install
azure-cli
npm install -g azure-cli
- Create
.deployment
anddeploy.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