diff --git a/deploy.js b/deploy.js index fbbfd94..06361a1 100644 --- a/deploy.js +++ b/deploy.js @@ -31,12 +31,12 @@ commander .version('1.0', '-v, --version') // 默认是 -V。如果要 -v,就要加 '-v --version' .option('-H, --host ', `Host IP or domain name of the target server. Default to ${Config.deploy.host}`) .option('-P, --port ', `Ssh port number of the target server. Default to ${Config.deploy.port}`) - .option('-r, --root ', `Path to deploy on the target server. Default to ${Config.deploy.root}`) - .option('-d, --dist ', `Folder to deploy on the target server. Default to ${Config.deploy.dist}`) .option('-u, --user ', `User id to login the target server. Default to ${Config.deploy.user}`) .option('-k, --key ', `User private key file to login the target server. Default to ${Config.deploy.key}`) .option('-p, --password ', `User password to login the target server. You may have to enclose it in "". Default to "${Config.deploy.password}"`) .option('-l, --local ', `Local folder to copy from. Default to ${Config.deploy.local}`) + .option('-D, --dir ', `Directory to deploy on the target server. Default to ${Config.deploy.dir}`) + .option('-d, --dist ', `Folder to deploy on the target server. Default to ${Config.deploy.dist}`) .parse(process.argv) const root = commander.root || Config.deploy.root // 本地的项目目录。似乎该目录必须已经存在于服务器上