feat: 初始化后端微服务架构骨架
This commit is contained in:
12
backend/scripts/gen-proto.sh
Normal file
12
backend/scripts/gen-proto.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Docker 内编译 proto 脚本
|
||||
echo "Generating proto files..."
|
||||
|
||||
# 进入脚本所在目录的父目录(backend 目录)
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
|
||||
# 运行 proto-builder 容器
|
||||
docker compose run --rm proto-builder
|
||||
|
||||
echo "Proto files generated successfully!"
|
||||
Reference in New Issue
Block a user