chat/web-腾讯云.bat

27 lines
507 B
Batchfile

@echo off
::设置服务器ip、账号、密码
set serverip=120.53.247.15
set serveruser=root
set userpwd=phy0316.
::设置上传路径
set uploadpathsup=/usr/local/src/phy/chat/
::更新开始
echo dist clean start...
rd/s/q dist
echo dist clean finished!
echo npm run build:prod start...
cmd /c "npm run build"
echo build:prod finished!
echo prod update start...
pscp -l %serveruser% -pw "%userpwd%" -r ".\dist" %serveruser%@%serverip%:%uploadpathsup%
echo prod update finished!
::更新结束
echo update finished!
pause