recycled.cloud/deploy.sh

10 lines
192 B
Bash
Raw Normal View History

2021-01-04 07:58:18 +01:00
#!/bin/sh
DESTINATION=root@static.recycled.cloud:/var/www/
2021-02-03 15:07:02 +01:00
WEBSITE=recycled.cloud
2021-01-04 07:58:18 +01:00
sftp -b - "$DESTINATION" <<- EOF
-rm $WEBSITE/*
$(for f in "$@"; do echo "put -R $f $WEBSITE/"; done)
EOF