From 511136ec21c72e899d2f2cad87b8465fae7ffcd8 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Thu, 9 Sep 2021 15:18:20 +0800 Subject: [PATCH] show url link after deployment --- deploy.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy.js b/deploy.js index 1ac8bfb..7d3fed0 100644 --- a/deploy.js +++ b/deploy.js @@ -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'))()