Patch deploy script for production

This commit is contained in:
Timothée Floure 2021-02-25 10:06:19 +01:00
parent e576922ba2
commit 40143d24d6
Signed by: tfloure
GPG Key ID: 4502C902C00A1E12
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
#!/bin/sh
DESTINATION=root@xml.globalinitiative.net:/var/www/
WEBSITE=xml.globalinitiative.net
DESTINATION='root@212.90.206.98:/var/www/'
WEBSITE='212.90.206.98'
sftp -b - "$DESTINATION" <<- EOF
sftp -P 2222 -b - "$DESTINATION" <<- EOF
-rm $WEBSITE/*
$(for f in "$@"; do echo "put -R $f $WEBSITE/"; done)
EOF