Exclude global-gitignore files
This commit is contained in:
parent
7db1a7c496
commit
1966ec526f
2 changed files with 5 additions and 1 deletions
|
|
@ -14,4 +14,7 @@ fi
|
||||||
|
|
||||||
source .deploy_config
|
source .deploy_config
|
||||||
# trailing slash: copy contents of directory into destination
|
# trailing slash: copy contents of directory into destination
|
||||||
rsync --verbose --human-readable --recursive --links --times --new-compress --delete-delay ${EXTRA_OPTS} public/ "${DEPLOY_HOST}:${DEPLOY_DIR}"
|
rsync --verbose --human-readable --recursive \
|
||||||
|
--links --times --new-compress --delete-delay \
|
||||||
|
--exclude-from=$HOME/.config/git/ignore \
|
||||||
|
${EXTRA_OPTS} public/ "${DEPLOY_HOST}:${DEPLOY_DIR}"
|
||||||
|
|
|
||||||
|
|
@ -31,4 +31,5 @@ zola build --drafts --base-url "$PREVIEW" --output-dir "$PREVIEW_TEMP"
|
||||||
# trailing slash: copy contents of directory into destination
|
# trailing slash: copy contents of directory into destination
|
||||||
rsync --verbose --human-readable --recursive \
|
rsync --verbose --human-readable --recursive \
|
||||||
--links --times --new-compress --delete-delay \
|
--links --times --new-compress --delete-delay \
|
||||||
|
--exclude-from=$HOME/.config/git/ignore \
|
||||||
${EXTRA_OPTS_PREVIEW:-} "$PREVIEW_TEMP/" "${PREVIEW_HOST}:${PREVIEW_DIR}"
|
${EXTRA_OPTS_PREVIEW:-} "$PREVIEW_TEMP/" "${PREVIEW_HOST}:${PREVIEW_DIR}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue