Skip to content

Commit

Permalink
[Docs]: 로그인 셸로 스크립트 실행
Browse files Browse the repository at this point in the history
  • Loading branch information
hamsangjin authored Oct 2, 2024
1 parent 7dac1f7 commit 6c3bf21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

source ~/.bashrc

ROOT_PATH="/home/ubuntu/spring-github-action"
JAR="$ROOT_PATH/inconcert-0.0.1-SNAPSHOT.jar"

Expand All @@ -15,7 +13,7 @@ echo "[$NOW] $JAR 복사" >> $START_LOG
cp $ROOT_PATH/build/libs/inconcert-0.0.1-SNAPSHOT.jar $JAR

echo "[$NOW] > $JAR 실행" >> $START_LOG
nohup java -jar $JAR > $APP_LOG 2> $ERROR_LOG &
nohup bash -l -c "java -jar $JAR" > $APP_LOG 2> $ERROR_LOG &

SERVICE_PID=$(pgrep -f $JAR)
echo "[$NOW] > 서비스 PID: $SERVICE_PID" >> $START_LOG

0 comments on commit 6c3bf21

Please sign in to comment.