Primo commit
This commit is contained in:
11
deploy-ftp-example.sh
Normal file
11
deploy-ftp-example.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Creazione file statici per Hugo
|
||||
hugo --gc
|
||||
|
||||
# Eliminazione file generati inutilizzati
|
||||
find public/ -name \*xcf -exec rm -f "{}" \;
|
||||
#find public/ -name \*jpg -exec rm -f "{}" \;
|
||||
find public/ -name \*png -exec rm -f "{}" \;
|
||||
|
||||
rclone sync --interactive --sftp-host sftp.example.com --sftp-user www-data --sftp-password obscured_password public/ :sftp:/domains/tuosito.it/public_html/
|
Reference in New Issue
Block a user