Skip to content

Commit

Permalink
Update switch.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
juno-junho authored Apr 16, 2024
1 parent d383ac5 commit ba36570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/switch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ PROFILE_BLUE=$(curl -s http://localhost:8081/api/profile)
PROFILE_GREEN=$(curl -s http://localhost:8082/api/profile)

# blue가 사용중이면 green이 쉬고 있고, 반대면 blue가 쉬고 있음
if [ $PROFILE_BLUE == blue ]
if [ $PROFILE_BLUE == green ]
then
IDLE_PORT=8082
elif [ $PROFILE_GREEN == green ]
elif [ $PROFILE_GREEN == blue ]
then
IDLE_PORT=8081
else
Expand Down

0 comments on commit ba36570

Please sign in to comment.