Skip to content

Commit

Permalink
Update deploy.sh : 문법 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
05AM authored Oct 3, 2023
1 parent 94db60d commit 786a46f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ DEPLOY_PATH=/home/ubuntu/app/nonstop/jar/
cp $BUILD_PATH $DEPLOY_PATH

echo "> 현재 구동중인 Set 확인"
if [ $DEPLOY_ENV == "main" ]
if [ $DEPLOY_ENV == main ]
then
CURRENT_PROFILE=$(curl -s https://api.tattour.shop/profile)
elif [ $DEPLOY_ENV == "dev" ]
elif [ $DEPLOY_ENV == dev ]
then
CURRENT_PROFILE=$(curl -s https://dev.tattour.shop/profile)
else
echo "> 일치하는 DEPLOY_ENV가 없습니다. DEPLOY_ENV: $DEPLOY_ENV"
echo "> $CURRENT_PROFILE"

# 쉬고 있는 set 찾기: set1이 사용중이면 set2가 쉬고 있고, 반대면 set1이 쉬고 있음
Expand Down

0 comments on commit 786a46f

Please sign in to comment.