-
Notifications
You must be signed in to change notification settings - Fork 61
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
Incremental Update based on a folder-hash file #117
base: master
Are you sure you want to change the base?
Conversation
Thanks Tom. As discussed in #124 I am reluctant to start adding files on remote servers. A while ago I used Grunt and Gulp for FTPing and they seemed to manage to changed-only uploads without extra files. I had thought about looking at their code to implement syncing but never had the time. What do you think? |
Hey Simon @simonh1000 I have not digged into Grunt and Gulp yet but from my point of view I wouldn't believe just a Coming to conclusion :-) I would like to have it implemented as I did it :-D But I can understand if you won't support that update - wondering if something like a plugin-support could be usable to attach such extensions like mine? What do you think how to proceed? Cheers |
So this creates a folder hash every time you run ftp, works out which files have changed relative to the folder hash on disk, uploads the changes, stores the folder-hash on your disk? |
Hi Simon @simonh1000 exactly :-) |
Hi, not yet perfect but working well.
You may create a folder-hash file and save that somewhere in your files.
To use folder-hash you need to install it from npm locally or global e.g.:
If that is given - the process tries to get the hash map file from ftp and diffs to what is on local.
Based on that the necessary files are deleted remotely and new and updated files will be transferred from local.
You may run folder-hash to create the list of sums (my distribution files from jekyll are located at
_site/
folder):E.g. create an updated folder-hash file:
For an example this is my main.js to deploy only changed files