pnkx-admin-mongo/script/web-腾讯云.bat

29 lines
596 B
Batchfile
Raw Normal View History

2024-01-13 13:29:20 +08:00
@echo off
::<3A><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD>ip<69><70><EFBFBD>˺š<CBBA><C5A1><EFBFBD><EFBFBD><EFBFBD>
set serverip=120.53.247.15
set serveruser=root
set userpwd=phy0316.
::<3A><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>·<EFBFBD><C2B7>
set uploadpathsup=/app/pnkx-admin/
cd ..\pnkx-ui
::<3A><><EFBFBD>¿<EFBFBD>ʼ
echo dist clean start...
rd/s/q dist
echo dist clean finished!
echo npm run build:prod start...
cmd /c "npm run build:prod"
echo build:prod finished!
echo prod update start...
pscp -l %serveruser% -pw "%userpwd%" -r "..\pnkx-ui\dist" %serveruser%@%serverip%:%uploadpathsup%
echo prod update finished!
::<3A><><EFBFBD>½<EFBFBD><C2BD><EFBFBD>
echo update finished!
pause