@ECHO OFF

git add *
git commit -m v1.0.0
git checkout master
git merge develop
git push
git checkout develop
git push

git archive --prefix qwilight-fe/ --add-file qwilight-fe\.env.local --prefix taehui-fe/ --add-file taehui-fe\.env.local --prefix= -o \\taehui\taehui\taehui.tar master

wsl ssh taehui.ddns.net sudo service pm2-root stop
wsl ssh taehui.ddns.net sudo rm -r /var/taehui/*
wsl ssh taehui.ddns.net sudo tar -xf taehui.tar -C /var/taehui
wsl ssh taehui.ddns.net "cd /var/taehui; sudo pnpm install; sudo pnpm build"
wsl ssh taehui.ddns.net sudo service pm2-root start

DEL \\taehui\taehui\taehui.tar
