File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# 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)
5
5
TARGET_PORT=8080
6
6
7
7
# Toggle port Number
Original file line number Diff line number Diff line change 3
3
echo " > Start run_new_was.sh"
4
4
5
5
# 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)
7
7
CURRENT_PROFILE=dev
8
8
TARGET_PORT=8080
9
9
@@ -23,7 +23,7 @@ TARGET_PORT=8080
23
23
# sudo kill $(sudo lsof -t -i:${TARGET_PORT})
24
24
25
25
# 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 &
27
27
echo " > Now new WAS runs at profile : ${CURRENT_PROFILE} ."
28
28
echo " > Now new WAS runs at port number : ${TARGET_PORT} ."
29
29
exit 0
You can’t perform that action at this time.
0 commit comments