u
This commit is contained in:
parent
dc53039d6d
commit
3d79daed4e
@ -66,7 +66,7 @@ commander
|
||||
.option('-f, --from <from>', `local path to copy from. Default to ${Config.deploy.from}`)
|
||||
.option('-t, --toTarget <toTarget>', `connection section in config. Default to ${Config.deploy.toTarget}`)
|
||||
|
||||
.option('-s, --server <server>', `server type, git or ssh. Default to ${Config.deploy.connection.type}`)
|
||||
.option('-s, --server <server>', `server type, git or ssh. Default to ${Config.deploy.connection.server}`)
|
||||
|
||||
.option('-H, --host <host>', `Host IP or domain name of the target server. Default to ${Config.deploy.connection.host}`)
|
||||
.option('-P, --port <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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user