Skip to content

Commit

Permalink
#64 [ENV] : 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hye-on committed Apr 19, 2024
1 parent 057b5d3 commit f693a30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_SSH_KEY }}
port: 22
source: "/TogetUp-0.0.1-SNAPSHOT.jar"
target: "/home/ubuntu/app"
source: "build/libs/TogetUp-0.0.1-SNAPSHOT.jar"
target: "home/ubuntu/app"
rm: false

- name: Deploy
Expand All @@ -65,7 +65,7 @@ jobs:
key: ${{ secrets.EC2_SSH_KEY }}
port: 22
script: |
SOURCE_DIR=home/ubuntu/app/
SOURCE_DIR=home/ubuntu/app/build/libs/
FILE_NAME=TogetUp-0.0.1-SNAPSHOT.jar
PID=$(ps aux | grep $FILE_NAME | grep -v grep | awk '{print $2}')
echo "PID : $PID"
Expand All @@ -78,7 +78,7 @@ jobs:
fi
echo "#### RUN $SOURCE_DIR/$FILE_NAME ####"
cd app
cd app/build/libs
sudo nohup java -jar $FILE_NAME 2>&1 &
echo "PID : $PID"
Expand Down

0 comments on commit f693a30

Please sign in to comment.