forked from freeleaps/freeleaps-pub
Update for optimize COMPONENTS adding
This commit is contained in:
parent
1e4aef9dda
commit
84a53c75d3
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Modifying it manually is not recommended
|
# 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")
|
DEVBOX_COMPONENTS=("devsvc" "notification" "content" "central_storage" "chat" "authentication")
|
||||||
|
|
||||||
log_info() {
|
log_info() {
|
||||||
@ -641,7 +641,7 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
|||||||
export DEVBOX_FRONTEND_PORT="${DEVBOX_FRONTEND_PORT}"
|
export DEVBOX_FRONTEND_PORT="${DEVBOX_FRONTEND_PORT}"
|
||||||
|
|
||||||
echo "[INIT] \$(date '+%Y-%m-%d %H:%M:%S') USE_LOCAL_COMPONENT_VAL: ${USE_LOCAL_COMPONENT_VAL}"
|
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
|
if [[ "$USE_LOCAL_COMPONENT_VAL" == "true" ]]; then
|
||||||
# Local component environment variables
|
# Local component environment variables
|
||||||
echo "[INIT] \$(date '+%Y-%m-%d %H:%M:%S') Use local component dev environment."
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Frontend environment variable settings. [:COMPONENT_SETTINGS]
|
||||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') USE_LOCAL_COMPONENT_VAL: \$USE_LOCAL_COMPONENT_VAL"
|
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') USE_LOCAL_COMPONENT_VAL: \$USE_LOCAL_COMPONENT_VAL"
|
||||||
if [[ "\$USE_LOCAL_COMPONENT_VAL" == "true" ]]; then
|
if [[ "\$USE_LOCAL_COMPONENT_VAL" == "true" ]]; then
|
||||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Use local component dev environment."
|
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Use local component dev environment."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user