recycled.cloud/deploy.sh
2021-01-04 07:58:18 +01:00

9 lines
207 B
Bash
Executable file

#!/bin/sh
DESTINATION=root@static.recycled.cloud:/var/www/
WEBSITE=static.staging.recycled.cloud
sftp -b - "$DESTINATION" <<- EOF
-rm $WEBSITE/*
$(for f in "$@"; do echo "put -R $f $WEBSITE/"; done)
EOF