updated deploy script and fixed incorrect path
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
50f7345a58
commit
eb90872116
12
deploy
12
deploy
|
@ -2,20 +2,20 @@
|
|||
|
||||
USR=dotyaoverlord
|
||||
HOST=dotya.ml
|
||||
PUBDIR=tew_0x00public/
|
||||
PUBDIR=$HOME/tew_0x00public/
|
||||
|
||||
rm -rfv ../tew0x00/public
|
||||
mkdir -pv ../tew0x00/public
|
||||
rm -rfv ../tew_0x00/public
|
||||
mkdir -pv ../tew_0x00/public
|
||||
|
||||
rsync -av index.html scripts css media \
|
||||
roundedcorners backgroundgradient shadows \
|
||||
2Dtransforms 3Dtransforms transitions animations \
|
||||
../tew0x00/public
|
||||
../tew_0x00/public
|
||||
|
||||
if [ $USER = $USR ]; then
|
||||
rsync -av --delete public/ ~/${PUBDIR}
|
||||
rsync -av --delete public/ ${PUBDIR}
|
||||
else
|
||||
rsync -avz --delete public/ ${USR}@${HOST}:~/${PUBDIR}
|
||||
rsync -avz --delete public/ ${USR}@${HOST}:${PUBDIR}
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue