Web Deploy skip rules

Rasmus Lauridsen's Avatar

Rasmus Lauridsen

28 Aug, 2014 09:00 AM

On my team we are currently using the Web Deploy provider to deploy the result of our build.

We would like to turn on the "Remove additional files at destination" to get rid of some of the crud that builds up over time.
Only problem is that we have some directories and files that we would like to keep. (App_Data, upload etc.)
MsDeploy has skip rules for this purpose and it would be lovely if we could supply these when deploying.

Excellent Stack overflow answer on the subject:
http://stackoverflow.com/a/5659390/379521

Thanks alot
Rasmus

  1. Support Staff 1 Posted by Feodor Fitsner on 28 Aug, 2014 02:31 PM

    Feodor Fitsner's Avatar

    As an easy fix right now you can just put a "placeholder.txt" file into App_Data folder  to prevent its deletion.

    -Feodor

  2. 2 Posted by Rasmus Lauridse... on 29 Aug, 2014 06:32 AM

    Rasmus Lauridsen's Avatar

    I'm not sure you got my meaning.
    We have some files that are generated by the server or uploaded later, that should not be deleted when we deploy a new version.
    But there are bunches other crud files that we would like to get rid of.

    Skip rules allow us to use the "Remove additional files at destination" feature of Web Deploy, but tell it to not delete some files or folders.

    Rasmus

  3. Support Staff 3 Posted by Feodor Fitsner on 29 Aug, 2014 06:59 AM

    Feodor Fitsner's Avatar

    OK, I see. Will take a look into that.

  4. 4 Posted by Rasmus Lauridse... on 29 Aug, 2014 08:11 AM

    Rasmus Lauridsen's Avatar

    Cool
    Looking forward to seeing it in action :-)

  5. Support Staff 5 Posted by Feodor Fitsner on 30 Aug, 2014 03:45 AM

    Feodor Fitsner's Avatar

    Done! Will be delivered with the next update. Looks like attached.

  6. 6 Posted by Rasmus Lauridse... on 30 Aug, 2014 11:22 AM

    Rasmus Lauridsen's Avatar

    Great news

    thank you ever so much.

  7. Support Staff 7 Posted by Feodor Fitsner on 31 Aug, 2014 05:48 PM

    Feodor Fitsner's Avatar

    It's been deployed.

    Skip directories/files could be configured either on UI or in appveyor.yml:

    deploy:
      provider: WebDeploy
      ...
      skip_dirs: \\App_Data;\\uploads
      skip_files: web.config
    
  8. 8 Posted by Rasmus Lauridse... on 31 Aug, 2014 06:10 PM

    Rasmus Lauridsen's Avatar

    That is awesome!
    As soon as I have fixed this npm problem in our build, I will turn to getting this running.

    Thank you

  9. Rasmus Lauridsen closed this discussion on 31 Aug, 2014 06:11 PM.

  10. Rasmus Lauridsen re-opened this discussion on 01 Sep, 2014 08:50 AM

  11. Rasmus Lauridsen closed this discussion on 01 Sep, 2014 08:52 AM.

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