3

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?

1
  • 1
    I just answered a similar question here: stackoverflow.com/a/45369323/610731. You can invoke npm via the Kudu API (using PowerShell or Bash for example). Commented Jul 28, 2017 at 9:12

1 Answer 1

3

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] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 
Sign up to request clarification or add additional context in comments.

1 Comment

and this is better than just manually writing the .deployment file?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.