From c75a5931041381adc386a25b07dbb15bb5fa4e0d Mon Sep 17 00:00:00 2001 From: dongkyunKim Date: Mon, 12 Feb 2024 17:40:52 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat():nohup=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Titto_Backend/nohup.out | 99 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 Titto_Backend/nohup.out diff --git a/Titto_Backend/nohup.out b/Titto_Backend/nohup.out new file mode 100644 index 0000000..18c1a75 --- /dev/null +++ b/Titto_Backend/nohup.out @@ -0,0 +1,99 @@ +Error: -jar requires jar file specification +Usage: java [options] [args...] + (to execute a class) + or java [options] -jar [args...] + (to execute a jar file) + or java [options] -m [/] [args...] + java [options] --module [/] [args...] + (to execute the main class in a module) + or java [options] [args] + (to execute a single source-file program) + + Arguments following the main class, source file, -jar , + -m or --module / are passed as the arguments to + main class. + + where options include: + + -cp + -classpath + --class-path + A : separated list of directories, JAR archives, + and ZIP archives to search for class files. + -p + --module-path ... + A : separated list of directories, each directory + is a directory of modules. + --upgrade-module-path ... + A : separated list of directories, each directory + is a directory of modules that replace upgradeable + modules in the runtime image + --add-modules [,...] + root modules to resolve in addition to the initial module. + can also be ALL-DEFAULT, ALL-SYSTEM, + ALL-MODULE-PATH. + --enable-native-access [,...] + modules that are permitted to perform restricted native operations. + can also be ALL-UNNAMED. + --list-modules + list observable modules and exit + -d + --describe-module + describe a module and exit + --dry-run create VM and load main class but do not execute main method. + The --dry-run option may be useful for validating the + command-line options such as the module system configuration. + --validate-modules + validate all modules and exit + The --validate-modules option may be useful for finding + conflicts and other errors with modules on the module path. + -D= + set a system property + -verbose:[class|module|gc|jni] + enable verbose output for the given subsystem + -version print product version to the error stream and exit + --version print product version to the output stream and exit + -showversion print product version to the error stream and continue + --show-version + print product version to the output stream and continue + --show-module-resolution + show module resolution output during startup + -? -h -help + print this help message to the error stream + --help print this help message to the output stream + -X print help on extra options to the error stream + --help-extra print help on extra options to the output stream + -ea[:...|:] + -enableassertions[:...|:] + enable assertions with specified granularity + -da[:...|:] + -disableassertions[:...|:] + disable assertions with specified granularity + -esa | -enablesystemassertions + enable system assertions + -dsa | -disablesystemassertions + disable system assertions + -agentlib:[=] + load native agent library , e.g. -agentlib:jdwp + see also -agentlib:jdwp=help + -agentpath:[=] + load native agent library by full pathname + -javaagent:[=] + load Java programming language agent, see java.lang.instrument + -splash: + show splash screen with specified image + HiDPI scaled images are automatically supported and used + if available. The unscaled image filename, e.g. image.ext, + should always be passed as the argument to the -splash option. + The most appropriate scaled image provided will be picked up + automatically. + See the SplashScreen API documentation for more information + @argument files + one or more argument files containing options + -disable-@files + prevent further argument file expansion + --enable-preview + allow classes to depend on preview features of this release +To specify an argument for a long option, you can use --= or +-- . + From 75174c468eb9bb50fedeea1ac0c7176b45ac39ff Mon Sep 17 00:00:00 2001 From: dongkyunKim Date: Mon, 12 Feb 2024 17:43:29 +0900 Subject: [PATCH 2/3] feat() : ds_store --- README.md | 1 - Titto_Backend/.DS_Store | Bin 8196 -> 8196 bytes appspec.yml | 23 ----------------------- scripts/start.sh | 24 ------------------------ scripts/stop.sh | 19 ------------------- 5 files changed, 67 deletions(-) delete mode 100644 README.md delete mode 100644 appspec.yml delete mode 100644 scripts/start.sh delete mode 100644 scripts/stop.sh diff --git a/README.md b/README.md deleted file mode 100644 index 73a0e1c..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# TittoBackend diff --git a/Titto_Backend/.DS_Store b/Titto_Backend/.DS_Store index a052adcb0c64fe24d5706efaa878821164487837..2e6ebce145395008e9af4b54d99d5d873c69660a 100644 GIT binary patch delta 76 zcmV-S0JHyuK!iY$PXQXSP`eKS8nX-#sR9T!GBPY6GC4An4-`MM{1Vau4G92l0B- $JAR_FILE 파일 복사" >> $DEPLOY_LOG -cp $PROJECT_ROOT/Titto_Backend/build/libs/Titto_Backend-0.0.1-SNAPSHOT.jar $JAR_FILE - -# 디렉토리 이동 -cd $JAR_FILE - -# jar 파일 실행 -echo "$TIME_NOW > $JAR_FILE 파일 실행" >> $DEPLOY_LOG -nohup java -jar $JAR_FILE > $APP_LOG 2> $ERROR_LOG & - -CURRENT_PID=$(pgrep -f $JAR_FILE) -echo "$TIME_NOW > 실행된 프로세스 아이디 $CURRENT_PID 입니다." >> $DEPLOY_LOG diff --git a/scripts/stop.sh b/scripts/stop.sh deleted file mode 100644 index 0cc9fc6..0000000 --- a/scripts/stop.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -PROJECT_ROOT="/home/ubuntu/app" -JAR_FILE="$PROJECT_ROOT/Titto_Backend/build/libs/Titto_Backend-0.0.1-SNAPSHOT.jar" - -DEPLOY_LOG="$PROJECT_ROOT/deploy.log" - -TIME_NOW=$(date +%c) - -# 현재 구동 중인 애플리케이션 pid 확인 -CURRENT_PID=$(pgrep -f $JAR_FILE) - -# 프로세스가 켜져 있으면 종료 -if [ -z $CURRENT_PID ]; then - echo "$TIME_NOW > 현재 실행중인 애플리케이션이 없습니다" >> $DEPLOY_LOG -else - echo "$TIME_NOW > 실행중인 $CURRENT_PID 애플리케이션 종료 " >> $DEPLOY_LOG - kill -15 $CURRENT_PID -fi \ No newline at end of file From e2bccae15d2f311d0ae2b3bf9fabbe075be6e436 Mon Sep 17 00:00:00 2001 From: dongkyunKim Date: Tue, 13 Feb 2024 02:14:03 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix()=20:=20scripts=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Titto_Backend/scripts/start.sh | 10 ++++------ Titto_Backend/scripts/stop.sh | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Titto_Backend/scripts/start.sh b/Titto_Backend/scripts/start.sh index bec92f9..ba057ec 100644 --- a/Titto_Backend/scripts/start.sh +++ b/Titto_Backend/scripts/start.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash PROJECT_ROOT="/home/ubuntu/app" -JAR_FILE="$PROJECT_ROOT/Titto_Backend/build/libs/Titto_Backend-0.0.1-SNAPSHOT.jar" +JAR_FILE="/home/ubuntu/Titto_Backend-0.0.1-SNAPSHOT.jar" APP_LOG="$PROJECT_ROOT/application.log" ERROR_LOG="$PROJECT_ROOT/error.log" @@ -11,14 +11,12 @@ TIME_NOW=$(date +%c) # build 파일 복사 echo "$TIME_NOW > $JAR_FILE 파일 복사" >> $DEPLOY_LOG -cp $PROJECT_ROOT/Titto_Backend/build/libs/Titto_Backend-0.0.1-SNAPSHOT.jar $JAR_FILE - -# 디렉토리 이동 -cd $JAR_FILE +cp $PROJECT_ROOT/Titto_Backend/build/libs/*.jar /home/ubuntu # jar 파일 실행 echo "$TIME_NOW > $JAR_FILE 파일 실행" >> $DEPLOY_LOG -nohup java -jar $JAR_FILE > $APP_LOG 2> $ERROR_LOG & +cd /home/ubuntu +nohup java -jar $JAR_FILE > /dev/null 2> /dev/null < /dev/null & CURRENT_PID=$(pgrep -f $JAR_FILE) echo "$TIME_NOW > 실행된 프로세스 아이디 $CURRENT_PID 입니다." >> $DEPLOY_LOG diff --git a/Titto_Backend/scripts/stop.sh b/Titto_Backend/scripts/stop.sh index 0cc9fc6..f2382f6 100644 --- a/Titto_Backend/scripts/stop.sh +++ b/Titto_Backend/scripts/stop.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash PROJECT_ROOT="/home/ubuntu/app" -JAR_FILE="$PROJECT_ROOT/Titto_Backend/build/libs/Titto_Backend-0.0.1-SNAPSHOT.jar" +JAR_FILE="/home/ubuntu/Titto_Backend-0.0.1-SNAPSHOT.jar" DEPLOY_LOG="$PROJECT_ROOT/deploy.log"