[deploy.js] 参数 -r root 改为 -D dir
This commit is contained in:
parent
fce90c90eb
commit
1f1f9bb097
@ -31,12 +31,12 @@ commander
|
||||
.version('1.0', '-v, --version') // 默认是 -V。如果要 -v,就要加 '-v --version'
|
||||
.option('-H, --host <host>', `Host IP or domain name of the target server. Default to ${Config.deploy.host}`)
|
||||
.option('-P, --port <port>', `Ssh port number of the target server. Default to ${Config.deploy.port}`)
|
||||
.option('-r, --root <root>', `Path to deploy on the target server. Default to ${Config.deploy.root}`)
|
||||
.option('-d, --dist <dist>', `Folder to deploy on the target server. Default to ${Config.deploy.dist}`)
|
||||
.option('-u, --user <user>', `User id to login the target server. Default to ${Config.deploy.user}`)
|
||||
.option('-k, --key <key>', `User private key file to login the target server. Default to ${Config.deploy.key}`)
|
||||
.option('-p, --password <password>', `User password to login the target server. You may have to enclose it in "". Default to "${Config.deploy.password}"`)
|
||||
.option('-l, --local <folder>', `Local folder to copy from. Default to ${Config.deploy.local}`)
|
||||
.option('-D, --dir <root>', `Directory to deploy on the target server. Default to ${Config.deploy.dir}`)
|
||||
.option('-d, --dist <dist>', `Folder to deploy on the target server. Default to ${Config.deploy.dist}`)
|
||||
.parse(process.argv)
|
||||
|
||||
const root = commander.root || Config.deploy.root // 本地的项目目录。似乎该目录必须已经存在于服务器上
|
||||
|
Loading…
Reference in New Issue
Block a user