Skip to content

Commit a160628

Browse files
committed
refactor: CI/CD 스크립트 수정
1 parent 02b49f4 commit a160628

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/dev_deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ jobs:
9999
JAR_FILE=$(ls /home/${{ secrets.EC2_USERNAME }}/*.jar | grep -v -- '-plain.jar' | head -n 1)
100100
101101
# ✅ 'java -jar' 명령어에 직접 Redis 호스트 정보를 추가합니다.
102-
nohup /usr/bin/java -jar --spring.redis.host=localhost $JAR_FILE > app.log 2>&1 &
103-
102+
chmod +x /home/ubuntu/alarm-0.0.1-SNAPSHOT.jar
103+
chmod +x /home/ubuntu/.env
104+
cd /home/ubuntu
105+
sudo nohup java -jar alarm-0.0.1-SNAPSHOT.jar &
104106
echo "애플리케이션을 성공적으로 시작했습니다."

0 commit comments

Comments
 (0)