This commit is contained in:
@@ -11,12 +11,16 @@ if [ -d ".git" ]; then
|
||||
git pull origin main || true
|
||||
fi
|
||||
|
||||
# 2. 重新编译后端与前端容器
|
||||
# 2. 清理旧的独立 blog-mysql 容器(改用 1Panel 现有 MySQL)
|
||||
docker stop blog-mysql 2>/dev/null || true
|
||||
docker rm blog-mysql 2>/dev/null || true
|
||||
|
||||
# 3. 重新编译后端与前端容器
|
||||
echo "🐳 [Docker] 重新构建并运行全栈容器..."
|
||||
docker compose down
|
||||
docker compose up -d --build
|
||||
|
||||
# 3. 检查服务健康状态
|
||||
# 4. 检查服务健康状态
|
||||
echo "⏳ [HealthCheck] 等待服务启动..."
|
||||
sleep 3
|
||||
docker ps --filter "name=blog-"
|
||||
|
||||
Reference in New Issue
Block a user