Skip to content

Commit

Permalink
Added log to cd
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Apr 2, 2024
1 parent 4ed3218 commit 28d3995
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BRANCH=master
cd ./../home/ubuntu/RMUD2
git fetch
pid=$(sudo lsof -t -i:443)
echo "Existing process: $pid"
if [[ "$(git rev-parse $BRANCH)" != "$(git rev-parse "$REMOTE/$BRANCH")" ]] || [["$pid" == ""]]; then
rm -rf ./cd.log
echo "Deploying new changes at $(date): $(git log -1 --pretty=%B)"
Expand Down

0 comments on commit 28d3995

Please sign in to comment.