Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore existing files, only upload changes? #116

Open
commadelimited opened this issue Sep 2, 2016 · 3 comments
Open

Ignore existing files, only upload changes? #116

commadelimited opened this issue Sep 2, 2016 · 3 comments

Comments

@commadelimited
Copy link

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
Copy link
Author

Bump. Any ideas on this?

@scoumbourdis
Copy link

scoumbourdis commented Jan 28, 2017

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

@VoiD2008
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants