added deploy command

This commit is contained in:
Yann Esposito (Yogsototh) 2020-03-02 00:39:14 +01:00
parent 2ca9551a54
commit f54f879a67
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

12
deploy.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
cd "$(git rev-parse --show-toplevel)" || exit 1
localdir="assets"
website="solaryzed.esy.fun"
echo -n "Uploading website"
rsync --progress\
--partial \
--delete \
-avHe ssh ${localdir}/ root@esy.fun:/var/www/${website}/
echo " [done]"