diff options
author | David Jones <david@davidejones.com> | 2020-03-08 16:35:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-08 17:35:32 +0100 |
commit | 51e178a6a28a3f305d89ebb489675743f80862ee (patch) | |
tree | 4bf767ca143528b3dac22f1189b9c6f283b7a8e5 /docs/content | |
parent | cb12f41a969a569cc00d5a45d5bfa846baffa45c (diff) |
deploy: Add include and exclude support for remote
Diffstat (limited to 'docs/content')
-rw-r--r-- | docs/content/en/hosting-and-deployment/hugo-deploy.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/content/en/hosting-and-deployment/hugo-deploy.md b/docs/content/en/hosting-and-deployment/hugo-deploy.md index a571d366d..178c9b176 100644 --- a/docs/content/en/hosting-and-deployment/hugo-deploy.md +++ b/docs/content/en/hosting-and-deployment/hugo-deploy.md @@ -85,8 +85,11 @@ cloudFrontDistributionID = <ID> # 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 |