From fb3e1641226a6f5b2d7e84cb98028c8f0bbbcd79 Mon Sep 17 00:00:00 2001
From: tpgus2603 <tpgus2604@ajou.ac.kr>
Date: Mon, 9 Dec 2024 19:30:11 +0900
Subject: [PATCH] =?UTF-8?q?refeat:=20=EB=B8=8C=EB=9E=9C=EC=B9=98=20?=
 =?UTF-8?q?=EB=B3=B5=EA=B5=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitignore |  2 ++
 start2.sh  | 35 -----------------------------------
 2 files changed, 2 insertions(+), 35 deletions(-)
 delete mode 100755 start2.sh

diff --git a/.gitignore b/.gitignore
index 2c01eb1..24ef659 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,5 @@ app.js
 output.log
 weblog.log
 start.sh
+start2.sh
+
diff --git a/start2.sh b/start2.sh
deleted file mode 100755
index a59b933..0000000
--- a/start2.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-# Define application file names
-APP_JS="app.js"
-WS_SERVER_JS="wsServer.js"
-
-git pull origin deploy
-
-# Find and kill processes for app.js
-APP_PID=$(pgrep -f "node .*${APP_JS}")
-if [ -n "$APP_PID" ]; then
-  echo "Stopping ${APP_JS} with PID: $APP_PID"
-  kill -9 "$APP_PID"
-else
-  echo "No running process found for ${APP_JS}"
-fi
-
-# Find and kill processes for wsServer.js
-WS_SERVER_PID=$(pgrep -f "node .*${WS_SERVER_JS}")
-if [ -n "$WS_SERVER_PID" ]; then
-  echo "Stopping ${WS_SERVER_JS} with PID: $WS_SERVER_PID"
-  kill -9 "$WS_SERVER_PID"
-else
-  echo "No running process found for ${WS_SERVER_JS}"
-fi
-
-# Start app.js with nohup
-echo "Starting ${APP_JS}..."
-nohup node "${APP_JS}" > output.log 2>&1 &
-echo "${APP_JS} started with PID: $!"
-
-# Start wsServer.js with nohup
-echo "Starting ${WS_SERVER_JS}..."
-nohup node "${WS_SERVER_JS}" > weblog.log 2>&1 &
-echo "${WS_SERVER_JS} started with PID: $!"
-- 
GitLab