Skip to content

Commit

Permalink
Correct cd port
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Apr 2, 2024
1 parent 28d3995 commit e469ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ REMOTE=origin
BRANCH=master
cd ./../home/ubuntu/RMUD2
git fetch
pid=$(sudo lsof -t -i:443)
pid=$(sudo lsof -t -i:2001)
echo "Existing process: $pid"
if [[ "$(git rev-parse $BRANCH)" != "$(git rev-parse "$REMOTE/$BRANCH")" ]] || [["$pid" == ""]]; then
rm -rf ./cd.log
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cd server
dotnet build

pid=$(sudo lsof -t -i:443)
pid=$(sudo lsof -t -i:2001)
echo "Killing process $pid..."
sudo kill $pid
TIMEOUT_SECS=10
Expand Down

0 comments on commit e469ff9

Please sign in to comment.