#!/bin/bash yarn run build 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