VS Team Services and the Azure Continuous Delivery subdirectory

I have a project in the VS Team Services git repository with the following structure (simplified):

  • /
    • scripts (for typescript)
    • styles (for sass)
    • wwwroot (general directory with images, css, js ...)
    • ...

All typescript and sass files are created using gulp in the appropriate directory inside wwwroot.

What I would like to do, but I can’t find, we only click wwwroot on the Azure website, and not on the entire project.

If this is not possible, then what are the alternatives?

+7
continuous-integration azure vsts azure-web-sites continuous-deployment
source share
1 answer

There are two ways to do this:

Easy way

You can add a custom deployment parameter that sets the wwwroot directory as the root directory of your site.

The bottom of this post describes how to do this: http://www.zainrizvi.me/2015/10/13/deploy-statically-generated-sites-to-azure-web-apps/

Here is the relevant snippet:

Add the .deployment file to the root folder of your code and paste below inside:

[config] project = wwwroot

Harder way

If you really just need to expand the wwwroot folder, you can use Custom Deployment Scripts to deploy only the files you need to your site.

This is due to the creation of a custom script that is executed every time your site is deployed, and in this script you will tell it to copy only the wwwroot folder.

+4
source share

All Articles