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

View file

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