update: optimize environment
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
# ==================== 环境变量配置 ====================
|
||||
# 设置默认值(如果命令行没传,就用这里的默认路径)
|
||||
WORKSPACES_ROOT ?= ./test/workspaces
|
||||
PUBLIC_BASE_URL ?= http://localhost
|
||||
PUBLIC_BASE_URL ?= http://192.168.139.3
|
||||
RUNTIME_HOST ?= 0.0.0.0
|
||||
RUNTIME_PORT ?= 8001
|
||||
RUNTIME_BASE_URL ?= http://127.0.0.1:8001
|
||||
BACKEND_HOST ?= 0.0.0.0
|
||||
BACKEND_PORT ?= 8000
|
||||
|
||||
# 将变量导出给 Makefile 启动的所有子进程
|
||||
export WORKSPACES_ROOT
|
||||
export PUBLIC_BASE_URL
|
||||
export RUNTIME_BASE_URL
|
||||
|
||||
.PHONY: runtime backend
|
||||
|
||||
|
||||
Reference in New Issue
Block a user