Blame view

Antis.Erp.Plat/sy/start.bat 677 Bytes
f946e9dd   hexiaodong   hhh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  @echo off
  REM 收银台模块 (POS System) 启动脚本 (Windows)
  REM Usage: start.bat [port]
  
  setlocal enabledelayedexpansion
  
  set PORT=8888
  if not "%1"=="" set PORT=%1
  
  echo ==========================================
  echo    收银台模块 (POS System) 启动
  echo ==========================================
  echo.
  echo 📁 项目路径: %cd%
  echo 🔌 监听端口: %PORT%
  echo.
  echo 🚀 启动服务器...
  echo.
  
  REM 启动 Python HTTP 服务器
  python -m http.server %PORT%
  
  REM 如果上面命令不可用,尝试 python3
  if %errorlevel% neq 0 (
      echo 尝试使用 python3...
      python3 -m http.server %PORT%
  )
  
  echo.
  echo ⚠️  按 Ctrl+C 停止服务器
  pause