Skip to content

Commit

Permalink
feat: 添加超时时间配置
Browse files Browse the repository at this point in the history
  • Loading branch information
fuchengwei committed Jan 12, 2023
1 parent 542b4f7 commit dceab76
Show file tree
Hide file tree
Showing 5 changed files with 679 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module.exports = {
projectName: 'vue_samples', // 项目名称
privateKey: '/Users/fuchengwei/.ssh/id_rsa',
passphrase: '',
readyTimeout: 20000, // 超时时间(毫秒)
cluster: [], // 集群部署配置,要同时部署多台配置此属性如: ['dev', 'test', 'prod']
dev: {
// 环境对象
Expand Down
3 changes: 2 additions & 1 deletion lib/commands/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ module.exports = {

return Object.assign(config[env], {
privateKey: config.privateKey,
passphrase: config.passphrase
passphrase: config.passphrase,
readyTimeout: config.readyTimeout
})
}

Expand Down
1 change: 1 addition & 0 deletions lib/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const createJsonObj = (userInputInfo) => {
projectName: userInputInfo.projectName,
privateKey: userInputInfo.privateKey,
passphrase: userInputInfo.passphrase,
readyTimeout: 20000,
cluster: []
}
const { deployEnvList } = userInputInfo
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deploy-cli-service",
"version": "1.3.0",
"version": "1.4.0",
"description": "前端一键自动化部署脚手架服务",
"main": "lib/service.js",
"homepage": "https://github.com/fuchengwei/deploy-cli-service",
Expand Down
Loading

0 comments on commit dceab76

Please sign in to comment.