Ignore directory during build/publish #3211
-
I need to manage a password protected directory on my website to be ignored during build/publish. I would like to manage a directory with content that is NOT generated by Pelican itself. If not possible I can consider to create a soft link in the 'content' folder pointing to the folder containing my files and then add this soft link to STATIC_PATHS list in pelicanconf.py? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Based on what you have explained, I assume you are using the default Rsync behavior of
|
Beta Was this translation helpful? Give feedback.
Based on what you have explained, I assume you are using the default Rsync behavior of
invoke publish
, which does indeed delete all files and folders on the remote system that are not present on the local system. After doing some research about protecting files/folders from Rsync's delete behavior, I suggest that you edit thepublish
task in yourtasks.py
file and add the following to thersync
invocation: