Skip to content

Commit

Permalink
seperate error log
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Feb 6, 2024
1 parent e988620 commit cb8fb0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deployment/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
# Find current directory & configure paths
SCRIPT_PATH=$(realpath $0)
SCRIPT_DIR=$(dirname $SCRIPT_PATH)
LOG_FILE=$SCRIPT_DIR/../log/$(date +"%Y-%m-%d %T")_deploy.log
LOG_FILE=$SCRIPT_DIR/../log/$(date +"%Y-%m-%d_%T")_deploy.log
LOG_ERROR_FILE=$SCRIPT_DIR/../log/$(date +"%Y-%m-%d_%T")_deploy.error.log

exec 3>&1 1>>${LOG_FILE} 2>&1
exec 3>&1 1>>${LOG_FILE} 2>&1 2>>${LOG_ERROR_FILE}

echo 'Start Deploy' | tee /dev/fd/3

Expand Down

0 comments on commit cb8fb0a

Please sign in to comment.