From 959dc8fdf183d500f55f5b7fd8f72d4488d0e630 Mon Sep 17 00:00:00 2001 From: leonincs Date: Thu, 23 Apr 2026 19:00:24 +0800 Subject: [PATCH] fix local compose config default --- start.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/start.sh b/start.sh index fd9d070..a50f263 100644 --- a/start.sh +++ b/start.sh @@ -27,6 +27,15 @@ STOP_DOCKER="${STOP_DOCKER:-0}" FRONTEND_INSTALL="${FRONTEND_INSTALL:-auto}" FRONTEND_SCRIPT="${FRONTEND_SCRIPT:-dev}" +# backend: +# - CONFIG_PATH can override the backend config. When this script also starts +# compose dependencies, default to the compose-local config that uses host +# port 3307 for MySQL. +if [ -z "${CONFIG_PATH:-}" ] && [ "$START_RABBITMQ" = "1" ]; then + CONFIG_PATH="configs/config.compose-local.yaml" +fi +export CONFIG_PATH + # redis: # - If you already run Redis elsewhere, this will detect it (when redis-cli exists) and skip. REDIS_HOST="${REDIS_HOST:-127.0.0.1}"