2019-03-05 00:13:10 +08:00
|
|
|
#!/bin/bash
|
2021-11-20 00:04:14 +08:00
|
|
|
export NODE_OPTIONS=--openssl-legacy-provider
|
|
|
|
|
2019-03-05 00:13:10 +08:00
|
|
|
yarn run build
|
2021-08-04 16:48:25 +08:00
|
|
|
rsync -avr --delete-after --exclude ".git" --exclude "node_modules" . root@manage.wyr.me:/root/blog-client
|
|
|
|
|
|
|
|
ssh -t -t root@manage.wyr.me << remotessh
|
|
|
|
source /root/.bashrc
|
|
|
|
cd /root/blog-client
|
|
|
|
yarn && pm2 restart blog-client && exit
|
|
|
|
remotessh
|