zszq-celebration-88/deploy.config.js
2022-07-28 19:26:05 +08:00

31 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
projectName: 'my-cli', // 项目名称
// privateKey: '/Users/rucky/.ssh/id_rsa',
passphrase: '',
// 测试环境部署
test: {
// 环境对象
name: 'szxgl测试环境', // 环境名称
script: 'npm run build:test', // 打包命令
host: '39.108.110.167', // 服务器地址
port: 22, // 服务器端口号
username: 'root', // 服务器登录用户名
password: 'xFhD@Test123', // 服务器登录密码
distPath: 'dist', // 本地打包生成目录
webDir: "/mnt/services/tomcat-8090-test/webapps/zszq-celebration/activity", // test替换自己实际项目目录 服务器部署路径(不可为空或'/'
isRemoveRemoteFile: true // 是否删除远程文件默认true
},
// 生产环境部署
prod: {
// 环境对象
name: 'xglpa生产环境', // 环境名称
script: 'npm run build:prod', // 打包命令
host: '39.108.248.30', // 服务器地址
port: 22, // 服务器端口号
username: 'liangzejun', // 服务器登录用户名
password: 'lzj.xfhd99', // 服务器登录密码
distPath: 'dist', // 本地打包生成目录
webDir: "/home/services/tomcats/public-webapps/xxx/front", // xxx替换自己实际项目目录 服务器部署路径(不可为空或'/'
isRemoveRemoteFile: true // 是否删除远程文件默认true
}
}