chore: 初始化 app-cli,本地开发环境脚本
- dev/dev.ps1: 一键启动后端(编译后运行)+前端(4321),校验 CORS 与 astro dev 单实例锁 - dev/stop.ps1: 按 PID 登记停止,-Force 清残留 - dev/status.ps1: 端口/PID/健康检查一览 - dev/doctor.ps1: 工具链/路径/依赖/数据库/端口/CORS 体检 - vision/vision.ps1: CLIP 向量服务起停 - lib/common.ps1: 路径探测、端口、进程登记、HTTP 探测 - config/local.env.example: 路径与端口覆盖模板
This commit is contained in:
24
config/local.env.example
Normal file
24
config/local.env.example
Normal file
@ -0,0 +1,24 @@
|
||||
# config/local.env — 本机路径与端口覆盖(复制为 local.env 后按需修改)
|
||||
#
|
||||
# 不填任何一项也能跑:默认按「与 app-cli 同级的目录」自动探测
|
||||
# BACKEND_DIR = <project>/backend
|
||||
# FRONTEND_DIR = <project>/test/test
|
||||
# VISION_DIR = <project>/fashion-siglip
|
||||
# 路径写错会在启动前被标记文件校验拦下,不会静默启动到空目录。
|
||||
|
||||
# ---- 仓库路径 ----
|
||||
# BACKEND_DIR=D:/project/backend
|
||||
# FRONTEND_DIR=D:/project/test/test
|
||||
# VISION_DIR=D:/project/fashion-siglip
|
||||
|
||||
# ---- 端口 ----
|
||||
# FRONTEND_PORT 必须与后端 cors.allow_origins 里放行的来源一致,
|
||||
# 否则浏览器会拦截接口(页面显示「无数据」)。改了这里记得同步改
|
||||
# backend/configs/config.local.yml 的 cors.allow_origins。
|
||||
BACKEND_PORT=8090
|
||||
FRONTEND_PORT=4321
|
||||
VISION_PORT=8900
|
||||
|
||||
# ---- 行为 ----
|
||||
# 启动完成后自动打开浏览器:1 开 / 0 关
|
||||
OPEN_BROWSER=0
|
||||
Reference in New Issue
Block a user