mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-09-04 11:51:05 +08:00
exclude files in rsync
This commit is contained in:
parent
921e7748b1
commit
39a0f305b5
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ echo 'syncing source files to plugin directory'
|
|||
cd /var/www/html
|
||||
|
||||
# copy plugin source files to WP path (else changing ownership will change on host)
|
||||
# ignore file ownership as we modify this post sync
|
||||
rsync -av --no-owner --delete /app/ wp-content/plugins/wordpress-static-html-output/
|
||||
# ignore file ownership as we modify this post sync; ignore git folder
|
||||
rsync -av --no-owner --exclude '.git/' --exclude '*.swp' --delete /app/ wp-content/plugins/wordpress-static-html-output/
|
||||
|
||||
# www-data to own plugin src files
|
||||
chown -R www-data:www-data wp-content/plugins/wordpress-static-html-output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue