添加发布脚本

This commit is contained in:
yi-ge 2019-03-05 00:13:10 +08:00
parent a137ac16df
commit 3e169a7493
2 changed files with 3 additions and 13 deletions

13
push.sh
View File

@ -1,13 +0,0 @@
#!/bin/bash
if [ $1 ]; then
git add .
git commit -m $1
git push origin master
else
git add .
git commit -m "update - `date '+%Y-%m-%d %T'`"
git push origin master
fi
yarn run build
rsync -avr --delete-after --exclude ".git" . root@139.129.130.191:/root/site/wyrme && ssh root@139.129.130.191 'docker restart wyrme'

3
release.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
yarn run build
rsync -avr --delete-after --exclude ".git" . root@139.129.130.191:/root/site/blog-client && ssh root@139.129.130.191 'docker restart blog-client'