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('-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('-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('-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}`)
|
.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)}`)
|
console.log(` deploy from ${Config.deploy.from} to ${JSON.stringify(connection)}`)
|
||||||
|
|
||||||
if (connection.type==='ssh') {
|
if (connection.server==='ssh') {
|
||||||
deployToSsh(connection)
|
deployToSsh(connection)
|
||||||
}else if (connection.type==='git'){
|
}else if (connection.server==='git'){
|
||||||
deployToGit(connection)
|
deployToGit(connection)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user