aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2017-03-10 17:08:46 +0800
committerQiLiang <liangqi1@huawei.com>2017-03-10 17:12:41 +0800
commit185218b1731357f1ef4ee4f2898519ede9a34912 (patch)
tree166f51b02a6a3b77be77713079b98bf5ead32218
parent4ba62d9db32b1624a8bb0cd1428fc8dd0ec37da7 (diff)
Add deploy log to file
JIRA: - The default log file path is: work/deploy/log/compass-deploy.log Change-Id: I6f8ebb028d169a0da88f2a588e4563db4f2f1f76 Signed-off-by: QiLiang <liangqi1@huawei.com>
-rwxr-xr-xdeploy.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index 915e4b98..891eadf9 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -38,4 +38,7 @@ if [[ -z $DEPLOY_COMPASS && -z $DEPLOY_HOST && -z $REDEPLOY_HOST ]]; then
export DEPLOY_HOST="true"
fi
-$COMPASS_DIR/deploy/launch.sh $*
+LOG_DIR=$COMPASS_DIR/work/deploy/log
+mkdir -p $LOG_DIR
+
+$COMPASS_DIR/deploy/launch.sh $* 2>&1 | tee $LOG_DIR/compass-deploy.log