diff options
author | QiLiang <liangqi1@huawei.com> | 2017-03-10 17:08:46 +0800 |
---|---|---|
committer | Justin chi <chigang@huawei.com> | 2017-03-14 03:49:23 +0000 |
commit | e97369145a2d1138ea4dcc223782a3476fbef42c (patch) | |
tree | 166f51b02a6a3b77be77713079b98bf5ead32218 | |
parent | 4ba62d9db32b1624a8bb0cd1428fc8dd0ec37da7 (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>
(cherry picked from commit 185218b1731357f1ef4ee4f2898519ede9a34912)
-rwxr-xr-x | deploy.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |