fix(deploy-mining): 修复rebuild命令不更新容器的问题

rebuild命令之前只调用build,现在会在构建后停止旧容器并启动新容器

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-11 18:47:25 -08:00
parent 7a68668aa9
commit 5dab829995
1 changed files with 11 additions and 2 deletions

View File

@ -467,8 +467,17 @@ services_build() {
services_rebuild() {
local target="$1"
local no_cache="$2"
services_build "$target" "$no_cache"
print_section "Rebuilding 2.0 Services"
local services
services=$(get_services_to_process "$target")
[ -z "$services" ] && exit 1
for service in $services; do
service_rebuild "$service" "--no-cache"
done
log_success "Rebuild completed"
}
services_status() {