oxaliq.net/deploy.sh

17 lines
434 B
Bash
Executable file

#!/bin/sh -e
# make a clean slate locally
rm -rf ./deploy-dir || true
mkdir ./deploy-dir
# copy all the files into a deploy local directory
cp -a ./sorrel/. ./deploy-dir/.
cp -a ./static ./deploy-dir/.
cp -a ./source ./deploy-dir/.
cp -a ./data ./deploy-dir/.
# make a clean slate remotely
ssh deploy@turtle.hup.is 'rm -rf ./sorrel.dev'
# copy all the files onto remote
rsync -avz ./deploy-dir/. deploy@turtle.hup.is:~/sorrel.dev