refactor: 重命名客户端工程
This commit is contained in:
+3
-3
@@ -104,7 +104,7 @@ def build_env(cfg: dict) -> dict[str, str]:
|
||||
"BASE_URL": app["base_url"],
|
||||
"PUBLIC_TRACE_PATH": "/t",
|
||||
"ADMIN_ORIGIN": f"http://localhost:{app['admin_port']}",
|
||||
"H5_ORIGIN": f"http://localhost:{app['h5_port']}",
|
||||
"CLIENT_ORIGIN": f"http://localhost:{app['client_port']}",
|
||||
"DATABASE_URL": f'"{database_url}"',
|
||||
"MYSQL_ROOT_PASSWORD": db["root_password"],
|
||||
"MYSQL_DATABASE": db["name"],
|
||||
@@ -381,7 +381,7 @@ def _free_port_psutil(port: int) -> bool:
|
||||
|
||||
|
||||
def free_port(port: int) -> None:
|
||||
"""结束本机占用指定端口的进程(释放上次的 api/admin/h5,并解除对 Prisma 引擎 DLL 的占用)。
|
||||
"""结束本机占用指定端口的进程(释放上次的 api/admin/client,并解除对 Prisma 引擎 DLL 的占用)。
|
||||
仅用于本地 node 服务,不要对 Docker 管理的端口使用。"""
|
||||
try:
|
||||
if _free_port_psutil(port):
|
||||
@@ -426,7 +426,7 @@ _SERVER_MARKERS = (
|
||||
"start:dev",
|
||||
"dev:api",
|
||||
"dev:admin",
|
||||
"dev:h5",
|
||||
"dev:client",
|
||||
"nodemon",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user