Web Deploy - Skip files and directories

charles's Avatar


01 Oct, 2014 06:04 PM

We are using Web Deploy to push artifacts to an Azure Website. We have a folder that contains some .coffee and .js files.

The files tree looks like this:

  • Coffee
    • views
      • view1.coffee
    • models
      • model1.coffee
    • locales
      • locales.js

We want to exclude those files when deploying. I added this in Skip directories: \\Coffee; \\Coffee\\.* and this in Skip files: \\Coffee\\.*
but the files are deployed anyway.

This is the only issue that we have, everything else is working A1 and we will be ready to switch to AppVeyor after that!

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Oct, 2014 06:12 PM

    Feodor Fitsner's Avatar

    So, you want to exclude entire Coffee folder? Is it in the root of web app?

  2. 2 Posted by charles on 01 Oct, 2014 06:15 PM

    charles's Avatar

    Yep it is, and yes I want to exclude the whole folder. I expected that setting Coffee in Skip Folders would do the trick, but did not work.

  3. Support Staff 3 Posted by Feodor Fitsner on 01 Oct, 2014 08:28 PM

    Feodor Fitsner's Avatar

    OK, found the issue. Currently, skip rules are applied to "destination" provider only, Azure Web Site, in your case, so the rule works when "Views" folder already exists there; otherwise, it re-creates "Views" folder on destination.

    Applying the same set of rules to "source" provider fixes the issue. I'm currently testing it locally and it ignores package's Views folder completely with only single \\Views directory rule.

    Will deploy fix later today.

  4. Support Staff 4 Posted by Feodor Fitsner on 02 Oct, 2014 05:04 AM

    Feodor Fitsner's Avatar


    AppVeyor update has been deployed. Set \\Views in Skip directories to achieve what you need.

    Let me know how that worked for you.

  5. 5 Posted by charles on 02 Oct, 2014 01:51 PM

    charles's Avatar

    Works perfectly! Thanks again for the amazing support.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:48 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac