TEW-0x00/deploy
surtur 716a54748d
All checks were successful
continuous-integration/drone/push Build is passing
forgot about the deploy script (again)
* added the media path so that it actually get's synced
2020-03-26 05:01:45 +01:00

17 lines
302 B
Bash

#!/bin/bash
USR=dotyaoverlord
HOST=dotya.ml
PUBDIR=tew_0x00public/
rm -rfv ./public
mkdir -pv public
rsync -av index.html prism.js pages css media ./public
if [ $USER = $USR ]; then
rsync -av --delete public/ ~/${PUBDIR}
else
rsync -avz --delete public/ ${USR}@${HOST}:~/${PUBDIR}
fi
exit 0