From 10457ca4647aaa1d995a8990640ee3b8a59570ca Mon Sep 17 00:00:00 2001 From: David Jones Date: Sun, 8 Mar 2020 16:35:32 +0000 Subject: [PATCH] deploy: Add include and exclude support for remote --- content/en/hosting-and-deployment/hugo-deploy.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/en/hosting-and-deployment/hugo-deploy.md b/content/en/hosting-and-deployment/hugo-deploy.md index a571d366d..178c9b176 100644 --- a/content/en/hosting-and-deployment/hugo-deploy.md +++ b/content/en/hosting-and-deployment/hugo-deploy.md @@ -85,8 +85,11 @@ cloudFrontDistributionID = # Optionally, you can include or exclude specific files. # See https://godoc.org/github.com/gobwas/glob#Glob for the glob pattern syntax. # If non-empty, the pattern is matched against the local path. -# If exclude is non-empty, and a file's path matches it, that file is dropped. -# If include is non-empty, and a file's path does not match it, that file is dropped. +# All paths are matched against in their filepath.ToSlash form. +# If exclude is non-empty, and a local or remote file's path matches it, that file is not synced. +# If include is non-empty, and a local or remote file's path does not match it, that file is not synced. +# As a result, local files that don't pass the include/exclude filters are not uploaded to remote, +# and remote files that don't pass the include/exclude filters are not deleted. # include = "**.html" # would only include files with ".html" suffix # exclude = "**.{jpg, png}" # would exclude files with ".jpg" or ".png" suffix