show url link after deployment

This commit is contained in:
陆柯 2021-09-09 15:18:20 +08:00
parent 6d699a2c74
commit 511136ec21

View File

@ -112,6 +112,11 @@ if (connection.targetType==='ssh') {
deployToGit(connection)
}
console.info(`*** Successfully deployed ${connection.fromPath} to ${connection.targetPath}/${connection.targetDir} ***`)
if (connection.url){
console.info(`*** Visiting ${connection.url} ***`)
}
/** ********************** 连接到 Ssh主机拷贝文件到指定路径 ************* **/
function deployToSsh(connection){
const ssh = new (require('node-ssh'))()