hexojs / hexo-deployer-rsync

Rsync deployer plugin for Hexo.
MIT License
47 stars 30 forks source link

add option: create non-existing files before updating existing files #100

Closed bojieli closed 1 year ago

bojieli commented 1 year ago

Rsync does not provide atomicity, so, the links in existing pages (e.g., homepage) may be updated before new large files (e.g., images and media) are uploaded, leading to dead links.

This patch introduces a 'create_before_update' option to upload non-existing files before updating links to them in the existing pages.

stevenjoezhang commented 1 year ago

There are some eslint errors need to be fixed.

bojieli commented 1 year ago

There are some eslint errors need to be fixed.

Fixed, thanks!