Web Deploy - Skip files and directories
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
- views
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!
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Feodor Fitsner on 01 Oct, 2014 06:12 PM
So, you want to exclude entire
Coffee
folder? Is it in the root of web app?2 Posted by charles on 01 Oct, 2014 06:15 PM
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.Support Staff 3 Posted by Feodor Fitsner on 01 Oct, 2014 08:28 PM
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.
Support Staff 4 Posted by Feodor Fitsner on 02 Oct, 2014 05:04 AM
Charles,
AppVeyor update has been deployed. Set
\\Views
in Skip directories to achieve what you need.Let me know how that worked for you.
5 Posted by charles on 02 Oct, 2014 01:51 PM
Works perfectly! Thanks again for the amazing support.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:48 AM.