Matthew James Davis
Matthew James Davis

Reputation: 12295

run npm scripts in kudu

I've got a slick Aurelia app and now I want to publish to Azure using VSTS using continuous deployment. On deployment, I need to run a few node commands.

npm install
jspm install
npm run build:staging

How can I configure Kudu to run this?

Upvotes: 3

Views: 2393

Answers (1)

kano
kano

Reputation: 5920

From kudu's wiki:

Install azure-cli

npm install azure-cli -g

Switch azure console to asm mode

azure config mode asm

In your project's root, run the custom deployment script generator command:

azure site deploymentscript [options]

Now you can edit the deploy.cmd file and add your custom steps (like your npm commands).

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

... [deployment steps]

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

Upvotes: 3

Related Questions