@liangzx-command/deploy
v1.0.1
Published
cscs deploy 部署本地打包 > 优点: > - 避免jenkins或其他进程等待占用时间 > - 避免重复无效的yarn之后再进打包时间,直接终端一键处理 > - 第三方部署工具不稳定情况. (Node版本不一致,锁文件没上传等) > - 打包客户环境时,可顺便部署到公司环境
Downloads
8
Readme
cscs deploy 部署本地打包
优点:
- 避免jenkins或其他进程等待占用时间
- 避免重复无效的yarn之后再进打包时间,直接终端一键处理
- 第三方部署工具不稳定情况. (Node版本不一致,锁文件没上传等)
- 打包客户环境时,可顺便部署到公司环境
执行命令 cscs deploy [buildName] 需要打包的文件
- --mv 部署到服务器名称
- -h 查看帮助
配置 项目目录创建 deploy-config.json host: 服务器IP port: 服务器端口 username: 服务器ssh登录用户名 password: 服务器ssh登录密码 path: 服务器web目录,注意结尾要加斜杠
{
"host": "172.17.9.106",
"port": 22,
"username": "appadmin",
"password": "Chin@i23$5oKM",
"path": "/data/www/"
}