Files
asset_helper/backend/scripts/dev-start.sh
2026-03-28 19:52:35 +08:00

25 lines
539 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# 纯 Docker 启动脚本
echo "Starting backend services with Docker..."
# 进入脚本所在目录的父目录backend 目录)
cd "$(dirname "$0")/.." || exit 1
# 构建服务
echo "Building services..."
docker compose build
# 启动服务
echo "Starting services..."
docker compose up -d
# 查看服务状态
echo "Services status:"
docker compose ps
echo "Backend services started successfully!"
echo "Nginx: http://localhost:8080"
echo "Gateway: http://localhost:8000"
echo "User Service: http://localhost:9000"