From 203ab5daef34ab90f75d7beb37a9edffd00a7067 Mon Sep 17 00:00:00 2001 From: yiekheng Date: Sat, 2 May 2026 20:32:47 +0800 Subject: [PATCH] feat(scripts): include web-next in dev.sh and publish.sh --- scripts/dev.sh | 10 +++++----- scripts/publish.sh | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/dev.sh b/scripts/dev.sh index 0ef7eca..a58b847 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -6,10 +6,10 @@ set -euo pipefail usage() { cat <<'EOF' -Lifecycle for the dev stack. +Lifecycle for the dev stack (mysql + api-server + web-view + web-next). Usage: - scripts/dev.sh up Start mysql + api-server + web-view in the background. + scripts/dev.sh up Start all dev services in the background. scripts/dev.sh down Stop the stack. mysql volume kept (DB persists). scripts/dev.sh reset-db Stop the stack AND drop the mysql volume; then start. scripts/dev.sh logs Tail logs from the running stack. @@ -47,7 +47,7 @@ fi case "${1:-}" in up) - "${COMPOSE[@]}" up -d --build mysql api-server web-view + "${COMPOSE[@]}" up -d --build mysql api-server web-view web-next "${COMPOSE[@]}" ps ;; down) @@ -59,10 +59,10 @@ case "${1:-}" in ;; reset-db) "${COMPOSE[@]}" down --volumes --remove-orphans - "${COMPOSE[@]}" up -d --build mysql api-server web-view + "${COMPOSE[@]}" up -d --build mysql api-server web-view web-next ;; logs) - "${COMPOSE[@]}" logs -f mysql api-server web-view + "${COMPOSE[@]}" logs -f mysql api-server web-view web-next ;; status) if "${COMPOSE[@]}" ps --status running --services 2>/dev/null | grep -q '^mysql$'; then diff --git a/scripts/publish.sh b/scripts/publish.sh index 266cbdd..a21434f 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -60,6 +60,7 @@ SERVICES=( "telegram docker/telegram/Dockerfile" "web docker/web/Dockerfile" "transfer docker/transfer/Dockerfile" + "web-next docker/web-next/Dockerfile" ) echo "Publishing CM Bot images to ${REGISTRY_PREFIX}/cm-:${IMAGE_TAG}"