Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
gidskql6671 committed May 24, 2024
1 parent 7b0ec6f commit 138a206
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,22 @@ jobs:
script: |
cd workspaces/1day1baek/back
# git reset --hard HEAD
git reset --hard HEAD
# cur_git_branch=$(git branch --show-current)
# if [ "$cur_git_branch" != "$BRANCH_NAME" ]; then
# git switch deploy/33-BE_cd
# fi
# git pull origin deploy/33-BE_cd
cur_git_branch=$(git branch --show-current)
if [ "$cur_git_branch" != "$BRANCH_NAME" ]; then
git switch deploy/33-BE_cd
fi
git pull origin deploy/33-BE_cd
# server_process=$(ps -ef | grep OneDayOneBaek-0.0.1-SNAPSHOT.jar$ | grep java)
# server_pid=(${server_process// / })
# server_pid=${server_pid[1]}
server_process=$(ps -ef | grep OneDayOneBaek-0.0.1-SNAPSHOT.jar$ | grep java)
server_pid=(${server_process// / })
server_pid=${server_pid[1]}
# if [ -n "$server_pid" ]; then
# echo "existed server pid : $server_pid"
if [ -n "$server_pid" ]; then
echo "existed server pid : $server_pid"
# echo $REMOTE_SSH_PASSWORD | sudo -S kill -9 $server_pid
# fi
echo $REMOTE_SSH_PASSWORD | sudo -S kill -9 $server_pid
fi
which asdf
asdf list
./gradlew clean build -x test
nohup java -Dspring.profiles.active=sandbox -jar build/libs/OneDayOneBaek-0.0.1-SNAPSHOT.jar > log.txt 2>&1 &
./run_sandbox.sh

0 comments on commit 138a206

Please sign in to comment.