Skip to content

Commit a3c84b3

Browse files
author
jemin
committed
chore: ec2 디렉토리 변경
1 parent c12ea4b commit a3c84b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/dev/health_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Crawl current connected port of WAS
4-
CURRENT_PORT=$(cat /home/ubuntu/dev_url.inc | grep -Po '[0-9]+' | tail -1)
4+
#CURRENT_PORT=$(cat /home/ubuntu/dev_url.inc | grep -Po '[0-9]+' | tail -1)
55
TARGET_PORT=8080
66

77
# Toggle port Number

scripts/dev/run_new_was.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
echo "> Start run_new_was.sh"
44

55
# Parse port number from 'dev_url.inc'
6-
CURRENT_PORT=$(cat /home/ubuntu/dev_url.inc | grep -Po '[0-9]+' | tail -1)
6+
#CURRENT_PORT=$(cat /home/ubuntu/dev_url.inc | grep -Po '[0-9]+' | tail -1)
77
CURRENT_PROFILE=dev
88
TARGET_PORT=8080
99

@@ -23,7 +23,7 @@ TARGET_PORT=8080
2323
#sudo kill $(sudo lsof -t -i:${TARGET_PORT})
2424

2525
# run jar file in background
26-
nohup sudo java -jar -Duser.timezone="Asia/Seoul" -Dspring.profiles.active=${CURRENT_PROFILE} -Dserver.port=${TARGET_PORT} /home/ubuntu/dev/build/libs/backend-0.0.1-SNAPSHOT.jar > /home/ubuntu/dev/nohup.out 2>&1 &
26+
nohup sudo java -jar -Duser.timezone="Asia/Seoul" -Dspring.profiles.active=${CURRENT_PROFILE} -Dserver.port=${TARGET_PORT} /home/ec2-user/dev/build/libs/backend-0.0.1-SNAPSHOT.jar > /home/ec2-user/dev/nohup.out 2>&1 &
2727
echo "> Now new WAS runs at profile : ${CURRENT_PROFILE}."
2828
echo "> Now new WAS runs at port number : ${TARGET_PORT}."
2929
exit 0

0 commit comments

Comments
 (0)