grunt-ftp-deploy icon indicating copy to clipboard operation
grunt-ftp-deploy copied to clipboard

Ignore existing files, only upload changes?

Open commadelimited opened this issue 8 years ago • 3 comments

I've been using this plugin for a while now and it's been working excellently. However as my local site grows, the time it takes to deploy increases. Additionally, it uploads lots of content that rarely changes. Entire folders of images from articles that are months old for example.

Is there any way to have it compare change dates on content before upload to avoid unncessary file transfers?

commadelimited avatar Sep 02 '16 17:09 commadelimited

Bump. Any ideas on this?

commadelimited avatar Sep 14 '16 14:09 commadelimited

I think this is not the scope of this plugin. As clearly it said at the initial doc:

For simplicity purposes this task avoids deleting any files and it is not trying to do any size or time stamp comparison. It simply transfers all the files (and folder structure) from your dev / build location to a location on your server.

If I where you, I would either:

  1. Search for another plugin that does the comparison (have in mind that this will be very very slow)
  2. Fork this repository and add the extra code (and also share it 😄 )
  3. Use another approach. Have you thought to use something like this: https://www.deployhq.com/ ? I think this option will be the best for you.

Cheers Johnny

scoumbourdis avatar Jan 28 '17 07:01 scoumbourdis

forked and made it at https://github.com/VoiD2008/grunt-ftp-deploy also created pull request

VoiD2008 avatar Apr 11 '20 17:04 VoiD2008