# 需要bash
# 需要配置ssh authorized_keys
# ssh-copy-id -i path_to_your_id_file.pub root@47.99.159.203
# test with 'ssh root@47.99.159.203'
# 如果依然需要密码 请google解决
tar -czf mallAdmin.tar mallAdmin
#rm -rf glassMall
scp mallAdmin.tar root@146.56.197.85:/usr/share/nginx/html/mallAdmin.tar
rm -rf mallAdmin.tar
ssh root@146.56.197.85 'cd /usr/share/nginx/html/ && rm -rf mallAdmin && tar -xzf mallAdmin.tar && rm -rf mallAdmin.tar && nginx -s reload'
echo 'done. 👉 http://146.56.197.85:12023'
# 清理分支
# git remote prune origin
