Skip to content

Commit

Permalink
chore: ec2 디렉토리 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jemin committed Apr 26, 2024
1 parent c12ea4b commit a3c84b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/dev/health_check.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

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

# Toggle port Number
Expand Down
4 changes: 2 additions & 2 deletions scripts/dev/run_new_was.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo "> Start run_new_was.sh"

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

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

# run jar file in background
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 &
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 &
echo "> Now new WAS runs at profile : ${CURRENT_PROFILE}."
echo "> Now new WAS runs at port number : ${TARGET_PORT}."
exit 0

0 comments on commit a3c84b3

Please sign in to comment.