added deploy command
This commit is contained in:
parent
2ca9551a54
commit
f54f879a67
1 changed files with 12 additions and 0 deletions
12
deploy.sh
Executable file
12
deploy.sh
Executable 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]"
|
Loading…
Reference in a new issue