Run npm scripts in kudu

I have a sleek Aurelia application and now I want to publish to Azure using VSTS using continuous deployment. When deploying, I need to run multiple node commands.

npm install
jspm install
npm run build:staging

      

How do I configure Kudu to run this?

+3


source to share


1 answer


From the kudu wiki :

Install azure-cli

npm install azure-cli -g

      

Turn azure console into asm mode

azure config mode asm

      



At the root of your project, run the custom deployment script generator command:

azure site deploymentscript [options]

      

You can now edit the deploy.cmd file and add your own steps (for example your npm commands).

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Deployment
:: ----------

... [deployment steps]

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

      

+3


source







All Articles