From 3d79daed4e552714b0056febfc9c98603a1a1104 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 15 Mar 2020 16:07:50 +0800 Subject: [PATCH] u --- deploy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.js b/deploy.js index 55d0c5e..68cf3e3 100644 --- a/deploy.js +++ b/deploy.js @@ -66,7 +66,7 @@ commander .option('-f, --from ', `local path to copy from. Default to ${Config.deploy.from}`) .option('-t, --toTarget ', `connection section in config. Default to ${Config.deploy.toTarget}`) - .option('-s, --server ', `server type, git or ssh. Default to ${Config.deploy.connection.type}`) + .option('-s, --server ', `server type, git or ssh. Default to ${Config.deploy.connection.server}`) .option('-H, --host ', `Host IP or domain name of the target server. Default to ${Config.deploy.connection.host}`) .option('-P, --port ', `Ssh port number of the target server. Default to ${Config.deploy.connection.port}`) @@ -112,9 +112,9 @@ const connection = { console.log(` deploy from ${Config.deploy.from} to ${JSON.stringify(connection)}`) -if (connection.type==='ssh') { +if (connection.server==='ssh') { deployToSsh(connection) -}else if (connection.type==='git'){ +}else if (connection.server==='git'){ deployToGit(connection) }