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

后端 未结 5 1476
臣服心动
臣服心动 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:48

    The Kudu deployment engine that App Service leverages has the ability to run custom deployment scripts. You can include your desired npm command inside of a custom deployment script that will be executed as part of the deployment on Azure's side. No REST API calls required and everything stays in your source control system.

提交回复
热议问题