Skip to content

Commit

Permalink
fix: deploy.sh 명령문 추가 (ssl, firebase 키 값)
Browse files Browse the repository at this point in the history
  • Loading branch information
KangJiSseok committed Mar 12, 2024
1 parent d8c8eae commit 57df51c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BackEnd/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ KEY=/home/ubuntu/key
REPOSITORY=/home/ubuntu/4k
cd $REPOSITORY

echo "> Paste Folder"
cp -r $KEY/ssl $REPOSITORY/src/main/resources
cp -r $KEY/firebase $REPOSITORY/src/main/resources

JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1)
JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME

Expand All @@ -17,9 +21,5 @@ else
sleep 5
fi

echo "> Paste Folder"
cp -r $KEY/ssl $REPOSITORY/src/main/resources
cp -r $KEY/firebase $REPOSITORY/src/main/resources

echo "> Deploy - $JAR_PATH "
nohup java -jar $JAR_PATH > $REPOSITORY/build/libs/nohup.out 2>&1 &

0 comments on commit 57df51c

Please sign in to comment.