Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 Online Build Process

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 Deployment

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!

like image 457
mbecker Avatar asked Jul 24 '15 15:07

mbecker


People also ask

How do I deploy a Visual Studio project to Azure?

Create or open an Azure cloud service project in Visual Studio. In Solution Explorer, right-click the project, and, from the context menu, select Convert > Convert to Azure Cloud Service Project. In Solution Explorer, right-click the newly created Azure project, and, from the context menu, select Publish.


1 Answers

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.

like image 133
Harshil Lodhi Avatar answered Oct 13 '22 11:10

Harshil Lodhi