clean up/fixed comments in build script

This commit is contained in:
wes
2025-05-29 12:38:47 -04:00
parent 41078e7885
commit 107e0f52df
+1 -6
View File
@@ -43,8 +43,7 @@ fi
# --- Step 2: Change Detection for Obsidian Content ---
NEEDS_REBUILD=false
# ... (Your existing change detection logic for OBSIDIAN_CONTENT_SOURCE vs LAST_BUILD_TIMESTAMP_FILE) ...
# (Make sure this logic is sound and sets NEEDS_REBUILD=true correctly)
if [ ! -d "$OBSIDIAN_CONTENT_SOURCE" ]; then
log_message "ERROR: Obsidian content source directory does not exist: ${OBSIDIAN_CONTENT_SOURCE}"
NEEDS_REBUILD=false
@@ -76,8 +75,6 @@ rsync -a --delete "${OBSIDIAN_CONTENT_SOURCE}/" "${LOCAL_CONTENT_FULL_PATH}/" ||
log_message "Obsidian content prepared successfully."
# --- Step 4: Docker Build & Deploy using Docker Compose ---
# ... (Your existing docker-compose down and docker-compose up sections using $DOCKER_COMPOSE_CMD) ...
# (The Dockerfile will now use the ./quartz_framework_source/ and ./content/ directories)
log_message "Tearing down existing Docker Compose services (if any)..."
COMPOSE_DOWN_OUTPUT_FILE="${QUARTZ_PROJECT_DIR}/compose_down_output.tmp"
$DOCKER_COMPOSE_CMD down --remove-orphans --volumes > "$COMPOSE_DOWN_OUTPUT_FILE" 2>&1
@@ -112,7 +109,5 @@ log_message "Updated last build timestamp."
log_message "Cleaning up temporary local content directory ./${LOCAL_CONTENT_TARGET_DIR_NAME}..."
rm -rf "${LOCAL_CONTENT_FULL_PATH}"
# Note: We are NOT cleaning up ./${QUARTZ_FRAMEWORK_DIR_NAME} here as we want to keep it for the next run to `git pull`.
# It's in .gitignore of your `my-quartz-deployment` repo.
log_message "--- Script Finished Successfully ---"