Skip to content

Commit

Permalink
improves ignored files
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Nov 27, 2021
1 parent 49fe81c commit d593a7c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .gitignore
@@ -1,3 +1,10 @@
.DS_Store
app/settings.php
app/vendor
/app/settings.php
/app/vendor
/content/images/users
/content/images/system/*
!/content/images/system/default
/content/pages
!/content/pages/default/
/images/*
!/images/.htaccess
10 changes: 8 additions & 2 deletions sync.sh
Expand Up @@ -5,13 +5,19 @@ TARGET=/var/www/html/
EXCLUDE="\.git|\.DS_Store|\/docs"
cp "${SOURCE}".gitignore "${TARGET}".gitignore
function sync() {
cp "${SOURCE}"sync.sh /var/www/sync.sh
rsync -r -I -og \
--chown=www-data:www-data \
--info=progress2 \
--filter=':- .gitignore' \
--filter=':- .dockerignore' \
--exclude '.git' \
--include 'content/images/system/default/*' \
--include 'content/pages/default/*' \
--exclude 'sync.sh' \
--exclude 'content/images/system/*' \
--exclude 'content/images/users/*' \
--exclude 'content/pages/*' \
--filter=':- .gitignore' \
--filter=':- .dockerignore' \
--delete \
$SOURCE $TARGET
}
Expand Down

0 comments on commit d593a7c

Please sign in to comment.