summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-03-14 03:49:12 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-14 03:49:12 +0000
commit8d5ac1ae0b6d2955caf15f9c317dad95290e322b (patch)
tree272b6cbcc81f749456a9e7e8cce141301ed17427
parent36de0a04135b0932eab1e3a30d703a98aabc031d (diff)
parent185218b1731357f1ef4ee4f2898519ede9a34912 (diff)
Merge "Add deploy log to file"
-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