Skip to content

Commit

Permalink
Merge pull request #65 from dajeongdev/bugfix/github-actions
Browse files Browse the repository at this point in the history
fix : ll, nohup 키워드 제거 및 포트 확인 추가
  • Loading branch information
dajeongdev authored Apr 10, 2024
2 parents 2840163 + 78515a1 commit a08c86e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ jobs:
- name: Build with Gradle
run: ./gradlew clean build -x test

# 빌드 폴더에 접근
- name: Enter build file
run: cd build/libs && ll
# 포트가 사용 중이라면 종료
- name: Kill 80 port if exist
run: |
if sudo lsof -i :8009; then
echo "Port 8009 is already in use. Killing the process..."
sudo kill -9 `sudo lsof -t -i:8009`
fi
# Jar 파일 실행
- name: Execute Jar File
run: sudo kill -9 `sudo lsof -t -i:8009` && sudo nohup java -jar americano-0.0.1-SNAPSHOT.jar &
run: sudo java -jar build/libs/americano-0.0.1-SNAPSHOT.jar &

0 comments on commit a08c86e

Please sign in to comment.