Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore : cicd 설정 #2

Merged
merged 1 commit into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ os: linux

files:
- source: /
destination: /home/ubuntu/meritz
destination: /home/ubuntu/hello
overwrite: yes
file_exists_behavior: OVERWRITE
permissions:
- object: /home/ubuntu/meritz/
- object: /home/ubuntu/hello/
owner: ubuntu
group: ubuntu
hooks:
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# JAR 파일 경로 설정
JAR_PATH="/home/ubuntu/meritz/build/libs/hellomeritz-0.0.1-SNAPSHOT.jar"
JAR_PATH="/home/ubuntu/hello/build/libs/hello-0.0.1-SNAPSHOT.jar"

# 실행 중인 애플리케이션의 PID 찾기
CURRENT_PID=$(pgrep -f "java -jar $JAR_PATH")
Expand Down
Loading