blog-client/push.sh
2019-02-07 16:26:17 +08:00

14 lines
328 B
Bash

#!/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'