How to run npm command on azure app service after deployment success by VSTS?

后端 未结 5 1404
臣服心动
臣服心动 2021-01-18 12:02

Now I can deploy from VSTS to azure, but I can\'t run npm after deploy is successful.

Now it is work like -> run npm install for branch files => zip => copy to azure

5条回答
  •  礼貌的吻别
    2021-01-18 12:57

    You can run commands like npm install via the Kudu REST API.

    Here's a scripted example written in PowerShell.

    Add a PowerShell script task after the Azure App Service Deploy task to invoke npm install (or any other command that Kudu supports). And disable the npm install task in your build pipeline.

提交回复
热议问题