Compare commits

...

5 Commits

Author SHA1 Message Date
4e613004fc test webhook 2025-07-18 10:50:57 +08:00
42cf919c30 Merge branch 'master' of 34.102.70.200:ALEX/pro_eld_mqtt_compare 2025-07-18 10:49:52 +08:00
9e472e204d Merge branch 'master' of 34.102.70.200:ALEX/pro_eld_mqtt_compare 2025-07-18 10:49:23 +08:00
9e060c0e80 "add script" 2025-07-18 10:18:24 +08:00
e89ebd62b8 "add script" 2025-07-18 10:18:13 +08:00
2 changed files with 1 additions and 2 deletions

View File

@@ -12,4 +12,4 @@ else
echo "Port $PORT is free. Starting application..." echo "Port $PORT is free. Starting application..."
nohup java -jar "$JAR_PATH" > "$LOG_PATH" 2>&1 & nohup java -jar "$JAR_PATH" > "$LOG_PATH" 2>&1 &
echo "Application started with PID $!" echo "Application started with PID $!"
fi fi

View File

@@ -15,7 +15,6 @@ else
cd "$CODE_DIR" || { echo "[ERROR] 进入目录失败"; exit 1; } cd "$CODE_DIR" || { echo "[ERROR] 进入目录失败"; exit 1; }
fi fi
# === 停止旧的 Java 应用 ===
pid=$(ps -ef | grep -w java | grep "$JAR_NAME" | grep -v grep | awk '{print $2}') pid=$(ps -ef | grep -w java | grep "$JAR_NAME" | grep -v grep | awk '{print $2}')
if [ -z "$pid" ]; then if [ -z "$pid" ]; then