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 7a8b239 commit 0e7900b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cicd_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ jobs:
port: 22
script: |
SOURCE_DIR=source/build/libs
FILE_NAME: TogetUp-0.0.1-SNAPSHOT.jar
FILE_NAME=TogetUp-0.0.1-SNAPSHOT.jar
pid=$(ps aux | grep $FILE_NAME | grep -v grep | awk '{print $2}')
echo "pid : $pid"
if [ -z "$PID" ]; then
if [ -z "$pid" ]; then
echo "#### THERE IS NO PROCESS ####"
else
echo "#### KILL $PID ####"
sudo kill $PID
echo "#### KILL $pid ####"
sudo kill $pid
fi
echo "#### RUN $SOURCE_DIR/$FILE_NAME ####"
cd app
sudo nohup java -jar $SOURCE_DIR/$FILE_NAME > /dev/null 2>&1 &

0 comments on commit 0e7900b

Please sign in to comment.