简体   繁体   中英

How to deploy a node.js app to Azure in Visual Studio Online?

I'm trying to deploy a node.js Web App from Visual Studio Online to Azure Web App. Visual Studi Online offers the possibility to build the app online and then to deploy it to azure.

I added the build script "Visual Studio Build" and then the "Azure Web App Deployment":

Visual Studio在线构建过程

The "Visual Studio Build" works fine. In the build process step "Azure Web App Deployment" I added different paths for "Web Deploy Package". Nothing works.

Azure Web App部署

Do you know how to build and deploy the node.js web app to Azure? Or do you know which path to use for the "Web Deploy Package" in the process step "Azure Web App Deployment"?

Thank you for your help!

Now the VSO allows the file picker to choose the path to the Web Deploy package.

I am not sure whether Visual Studio Build will create a deployment package for a Node.JS application.

You can try one of the two things.

  1. You can create your own zip package from the code by using the generic powershell task and then put the zip's full path on the agent machine in Web Deploy Package field.

  2. You can always check-in the zipped file which then can be selected using file-picker.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM