#!/bin/bash
# 一键部署 (构建 + 启动)
set -e
cd "$(dirname "$0")/.."
echo "🚀 开始一键部署..."
echo ""
echo "🔨 步骤 1/2: 构建镜像..."
docker compose build --no-cache
echo ""
echo "🚀 步骤 2/2: 启动服务..."
docker compose up -d
echo ""
echo "✅ 部署完成!"
echo "📍 访问地址: http://localhost:${PORT:-3000}"
echo "📋 查看日志: ./scripts/logs.sh"
