Skip to content

Commit

Permalink
修改部署检查bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fuchengwei committed Sep 15, 2020
1 parent 0240f46 commit d90c4de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/commands/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ module.exports = {
const config = require(deployConfigPath)
const projectName = config.projectName
const envConfig = config[env]
checkEnvCorrect(envConfig)
checkEnvCorrect(envConfig, env)

const answers = await confirmDeploy(
`${underline(projectName)} 项目是否部署到 ${underline(envConfig.name)}?`
)

if (answers.confirm) {
await execBuild(envConfig.script, env)
await execBuild(envConfig.script)
await connectSSH(envConfig)
await removeRemoteFile(envConfig.webDir)
await uploadLocalFile(envConfig)
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.0.8",
"version": "1.0.9",
"description": "前端一键自动化部署脚手架服务",
"main": "lib/service.js",
"homepage": "https://github.com/fuchengwei/deploy-cli-service",
Expand Down

0 comments on commit d90c4de

Please sign in to comment.