Skip to content

Commit

Permalink
Update start_server.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseohyun1228 authored Nov 7, 2024
1 parent 9678331 commit aa9eb7d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/start_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# JAR 파일 경로
JAR_PATH="/home/ubuntu/my-spring-app/libs/boomerang-0.0.1-SNAPSHOT.jar"

# 애플리케이션 종료 (기존 프로세스 종료)
pkill -f $JAR_PATH

# 애플리케이션 실행
nohup java -jar $JAR_PATH > /home/ubuntu/my-spring-app/log.txt 2>&1 &

0 comments on commit aa9eb7d

Please sign in to comment.