Update for optimize COMPONENTS adding

This commit is contained in:
timqiu 2025-04-07 16:09:46 +08:00
parent 1e4aef9dda
commit 84a53c75d3

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Modifying it manually is not recommended
# All components that can be started in the DevBox container. [COMPONENT_SETTINGS]
# All components that can be started in the DevBox container. [:COMPONENT_SETTINGS]
DEVBOX_COMPONENTS=("devsvc" "notification" "content" "central_storage" "chat" "authentication")
log_info() {
@ -641,7 +641,7 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
export DEVBOX_FRONTEND_PORT="${DEVBOX_FRONTEND_PORT}"
echo "[INIT] \$(date '+%Y-%m-%d %H:%M:%S') USE_LOCAL_COMPONENT_VAL: ${USE_LOCAL_COMPONENT_VAL}"
# Check if the working home directory exists, if not, create it
# Check if the working home directory exists, if not, create it. [:COMPONENT_SETTINGS]
if [[ "$USE_LOCAL_COMPONENT_VAL" == "true" ]]; then
# Local component environment variables
echo "[INIT] \$(date '+%Y-%m-%d %H:%M:%S') Use local component dev environment."
@ -1341,6 +1341,7 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
exit 1
fi
# Frontend environment variable settings. [:COMPONENT_SETTINGS]
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') USE_LOCAL_COMPONENT_VAL: \$USE_LOCAL_COMPONENT_VAL"
if [[ "\$USE_LOCAL_COMPONENT_VAL" == "true" ]]; then
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Use local component dev environment."