Brandon Smith
Brandon Smith

Reputation: 1197

Single-Solution Multi-Project Web App Deployment via Git

I have a solution I've been developing locally that contains three projects. The structure is as follows:

My Solution Contains:

I'm using IIS to map the projects to the following virtual directories:

The Web project is the entry point to the application and contains all of my static files (css, js, html). It contains an angularjs app, and an index.cshtml for bundling support.

I've opened a new Azure account and am trying to deploy this solution to a single Web application. I would like to use continuous deployment by connecting to my git repo. Is this even possible?

I've attached my repo, but deployment only seems to grab the Auth project and completely ignore the other two.

Do I have to configure the projects in seperate Web Apps? (highly undesirable). All projects use the same DB. If they have to be in their own Web Apps, is it possible for them to use the same domain name and map them to my virtual directories listed above?

Upvotes: 0

Views: 483

Answers (1)

Amit Apple
Amit Apple

Reputation: 9192

There is no out of the box support for your scenario but you can follow these steps to get the configuration you want:

  1. Create a custom deployment script that will build all of your projects and deploy them to separate directories (for example wwwroot, wwroot_auth and wwwroot_api), documentation on this can be found here - http://blog.amitapple.com/post/38417491924/azurewebsitecustomdeploymentpart1/ (3 parts).

  2. Using applicationhost.xdt transformation file create the virtual directories, documentation on this: https://github.com/projectkudu/kudu/wiki/Xdt-transform-samples

Alternative to 2. is to create the virtual directories from the management portal (under the CONFIGURE tab).

Note: The easiest solution is to use separate Web Apps for each project, this way you have more out of the box support.

Upvotes: 1

Related Questions