GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.35k stars 420 forks source link

[Bug]: Sync is not working as expected #1638

Closed Feriman22 closed 3 months ago

Feriman22 commented 3 months ago

Operating system

Windows 10 LTSC

Publii version

0.46.1 (build 16918)

Post editor

None

Bug description

The app doesn't notice when syncing if I have already removed the index.html file, and it doesn't sync there.

I use SFTP upload for the "Server" section.

Steps to reproduce

1., Set SFTP upload in "Server" 2., Sync your website to this remote folder 3., Remove the index.html from the remote folder 4., Sync your website to this remote folder 5., Check the remote folder. The index.html should be there, but it isn't.

Relevant log output

No response

dziudek commented 3 months ago

@Feriman22 - it is not a bug but a request for a feature which currently is not planned - if you removed the file manually from the server then there is no easy way to detect its absence. That's why we upload files.publii.json file which stores list of files which has been uploaded. If you remove any files manually from the server - you must reupload them manually or remove files.publii.json to upload all files again.