chore(env): docker-compose 端口与服务配置微调并更新规则表与日志
- docker-compose(.full).yml 与 start.sh 微调端口/服务配置 - AGENTS.md 同步更新协作规范 - 更新交通/通信/差旅等财务规则表,补 2026-06-24 work-log
This commit is contained in:
14
start.sh
14
start.sh
@@ -27,6 +27,16 @@ info() { printf '%b\n' "${GREEN}[INFO]${NC} $*"; }
|
||||
warn() { printf '%b\n' "${YELLOW}[WARN]${NC} $*"; }
|
||||
error() { printf '%b\n' "${RED}[ERROR]${NC} $*"; exit 1; }
|
||||
|
||||
is_container() {
|
||||
[ -f "/.dockerenv" ] && return 0
|
||||
|
||||
if [ -r /proc/1/cgroup ] && grep -Eq "(docker|containerd|kubepods)" /proc/1/cgroup 2>/dev/null; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
if [ ! -f "$ENV_FILE" ]; then
|
||||
if [ -f "$ENV_EXAMPLE_FILE" ]; then
|
||||
warn ".env not found. Creating it from .env.example"
|
||||
@@ -126,6 +136,10 @@ if [ "$APP_DEBUG" = "true" ]; then
|
||||
DEFAULT_SERVER_RELOAD="true"
|
||||
fi
|
||||
|
||||
if is_container; then
|
||||
DEFAULT_SERVER_RELOAD="false"
|
||||
fi
|
||||
|
||||
EFFECTIVE_SERVER_RELOAD="${SERVER_RELOAD:-$DEFAULT_SERVER_RELOAD}"
|
||||
|
||||
setup_ready() {
|
||||
|
||||
Reference in New Issue
Block a user