From e21a95b0ad3c3819cd4b817feadcc1de25f73f2b Mon Sep 17 00:00:00 2001 From: bbeomgeun Date: Fri, 25 Mar 2022 23:22:52 +0900 Subject: [PATCH 1/3] =?UTF-8?q?Chore:=20=EB=A6=AC=EB=88=85=EC=8A=A4=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20jasypt=20password=20?= =?UTF-8?q?=EC=84=B8=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 7e2e65c..cab57c6 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,4 +1,5 @@ #!/bin/bash +source = /home/ec2-user/.bashrc REPOSITORY=/home/ec2-user/env/WhaleDone-Server CURRENT_PORT=$(cat /home/ec2-user/service_url.inc | grep -Po '[0-9]+' | tail -1) TARGET_PORT=0 @@ -20,6 +21,6 @@ if [ ! -z ${TARGET_PID} ]; then sudo kill ${TARGET_PID} fi -nohup java -jar -Dserver.port=${TARGET_PORT} ${REPOSITORY}/build/libs/* > /home/ec2-user/env/nohup.out 2>&1 & +nohup java -jar -Dserver.port=${TARGET_PORT} -DJASYPT_WHALEDONE_PASSWORD=${JASYPT_WHALEDONE_PASSWORD} ${REPOSITORY}/build/libs/* > /home/ec2-user/env/nohup.out 2>&1 & echo "> Now new WAS runs at ${TARGET_PORT}." exit 0 From 5649fda3153a4e0f7a0a125362cf5e62149d6ff0 Mon Sep 17 00:00:00 2001 From: bbeomgeun Date: Fri, 25 Mar 2022 23:49:14 +0900 Subject: [PATCH 2/3] =?UTF-8?q?Chore:=20shell=20script=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index cab57c6..43fd531 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,5 +1,5 @@ #!/bin/bash -source = /home/ec2-user/.bashrc +source=/home/ec2-user/.bashrc REPOSITORY=/home/ec2-user/env/WhaleDone-Server CURRENT_PORT=$(cat /home/ec2-user/service_url.inc | grep -Po '[0-9]+' | tail -1) TARGET_PORT=0 From f0c197cbabd8323693281ec111a30e706ee61ea5 Mon Sep 17 00:00:00 2001 From: bbeomgeun Date: Sat, 26 Mar 2022 00:47:03 +0900 Subject: [PATCH 3/3] =?UTF-8?q?Chore:=20code=20deploy=EC=9A=A9=20ec2=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20=ED=8C=8C=EC=9D=BC=20pat?= =?UTF-8?q?h=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 43fd531..5beffd8 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,5 +1,5 @@ #!/bin/bash -source=/home/ec2-user/.bashrc +source=/etc/profile.d/codedeploy.sh REPOSITORY=/home/ec2-user/env/WhaleDone-Server CURRENT_PORT=$(cat /home/ec2-user/service_url.inc | grep -Po '[0-9]+' | tail -1) TARGET_PORT=0