添加发布脚本
This commit is contained in:
parent
a137ac16df
commit
3e169a7493
13
push.sh
13
push.sh
@ -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
3
release.sh
Executable 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'
|
Loading…
Reference in New Issue
Block a user