Kaynağa Gözat

名称变动

liuchengsen 1 ay önce
ebeveyn
işleme
2b06ff4df7
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      deploy/deploy.sh

+ 3 - 3
deploy/deploy.sh

@@ -11,7 +11,7 @@ APP_NAME="zhijiayun-pharmacy"
 APP_HOME="/opt/zhijiayun-pharmacy"
 JAR_NAME="zhijiayun-gateway-1.0.0.jar"
 JAR_PATH="${APP_HOME}/${JAR_NAME}"
-LOG_DIR="/var/log/zhijiayun-pharmacy"
+LOG_DIR="/opt/logs/zhijiayun-pharmacy"
 PID_FILE="${APP_HOME}/${APP_NAME}.pid"
 ENV_FILE="${APP_HOME}/.env"
 
@@ -99,7 +99,7 @@ do_start() {
     local timeout=60
     while [ ${timeout} -gt 0 ]; do
         sleep 2
-        if curl -sf "http://localhost:8001/actuator/health" > /dev/null 2>&1; then
+        if curl -sf "http://localhost:8002/actuator/health" > /dev/null 2>&1; then
             info "✅ 应用启动成功!PID=${new_pid}"
             return
         fi
@@ -154,7 +154,7 @@ do_status() {
     if [ -n "${pid}" ]; then
         info "✅ ${APP_NAME} 运行中,PID=${pid}"
         # 尝试健康检查
-        if curl -sf "http://localhost:8001/actuator/health" 2>/dev/null; then
+        if curl -sf "http://localhost:8002/actuator/health" 2>/dev/null; then
             echo ""
         else
             warn "健康检查端口无响应(应用可能正在启动中)"