How can I run npm command on azure app service after successfully deploying VSTS?
3 answers
There is no box-less assembly task to achieve the required function. If you want to run npm from Azure App Service:
In manual mode: you can go to the Kudu console of the App service and run the npm command there:
Automatic: you need to create your own build task to run npm command via Kudu Rest API
+1
source to share
You can run commands like npm install
through Kudu REST API .
Here's a script written in PowerShell .
Add a PowerShell script task after the Azure App Service Deploy task to invoke npm install
(or any other command supported by Kudu). And disable the npm install task in the build pipeline.
+1
source to share