diff --git a/mens-api/README.md b/mens-api/README.md index 9e42de9..ddd31fa 100644 --- a/mens-api/README.md +++ b/mens-api/README.md @@ -158,14 +158,14 @@ public class ApiResponseDTO implements Serializable { $ mvnw clean package -P local # 실행 : 프로젝트폴더/ens-parent/ens-api/target에 생성된 jar파일 실행 -$ c:\tools\java\azul-17.0.1\java -jar -Dspring.profiles.active=local .\ens-api.jar +$ c:\tools\java\azul-17.0.1\java -jar -Dspring.profiles.active=local .\mens-api.jar # mvn 명령어 설명 # -pl [모듈명] : 모듈명의 프로젝트만 빌드 # -am : 의존성 있는 프로젝트 함께 빌드 - C가 A를 디펜던시로 가지고 있으며 C를 빌드하면 A -> C 순으로 빌드 -$ mvnw clean package -pl ens-api -am -P local +$ mvnw clean package -pl mens-api -am -P local # -amd : 의존성 있는 타 프로젝트 빌드 - C가 A를 디펜던시로 가지고 있는 경우 A를 빌드 하면 A -> C 순으로 빌드 -$ mvnw clean package -pl egov-core -amd -P local +$ mvnw clean package -pl mens-core -amd -P local ``` ### 스프링 배치 DB schema [mysql DDL 스크립트](./document/batch-schema-mysql.sql) diff --git a/shell/backupApi.sh b/shell/backupApi.sh index 01e4384..03910f3 100644 --- a/shell/backupApi.sh +++ b/shell/backupApi.sh @@ -7,16 +7,16 @@ if [ $# -ne 1 ]; then exit 1 fi -if [ ! -f "$1.jar" ]; then +if [ ! -f "../$1.jar" ]; then echo "===================================" echo " $1.jar file not exist" echo "===================================" exit 1 fi -source /applications/mens/stopApi.sh $1 +source /applications/mens/bin/stopApi.sh $1 echo "-----------------------------------" echo " $1 application backup success!" echo "-----------------------------------" -#mv /applications/mens/$1.jar /applications/mens/$1.jar_backup +mv /applications/mens/$1.jar /applications/mens/$1.jar_backup diff --git a/shell/deployApi.sh b/shell/deployApi.sh index 2fd1c22..ad95081 100644 --- a/shell/deployApi.sh +++ b/shell/deployApi.sh @@ -7,7 +7,7 @@ if [ $# -ne 1 ]; then exit 1 fi -if [ ! -f "$1.jar" ]; then +if [ ! -f "../$1.jar" ]; then echo "===================================" echo " $1.jar file not exist" echo "===================================" diff --git a/shell/startApi.sh b/shell/startApi.sh index 56e2010..17bede9 100644 --- a/shell/startApi.sh +++ b/shell/startApi.sh @@ -7,7 +7,7 @@ if [ $# -ne 1 ]; then exit 1 fi -if [ ! -f "$1.jar" ]; then +if [ ! -f "../$1.jar" ]; then echo "===================================" echo " $1.jar file not exist" echo "==================================="