fix: 移除启动时自动编译 proto 逻辑,避免网络错误,make dev 只启动容器

This commit is contained in:
fish
2026-03-28 18:34:22 +08:00
parent 5b37b1c354
commit 31160ece4a
3 changed files with 12 additions and 56 deletions

View File

@@ -22,15 +22,6 @@ if ! command -v docker-compose &> /dev/null; then
exit 1
fi
# 生成 proto 代码
echo -e "${YELLOW}Generating proto code...${NC}"
if ./scripts/gen-proto.sh; then
echo -e "${GREEN}Proto code generated successfully!${NC}"
else
echo -e "${RED}Failed to generate proto code!${NC}"
exit 1
fi
# 构建开发环境
echo -e "${YELLOW}Building development environment...${NC}"
if docker-compose -f docker-compose.dev.yml build; then
@@ -54,5 +45,5 @@ echo -e "${YELLOW}Service status:${NC}"
docker-compose -f docker-compose.dev.yml ps
echo -e "${GREEN}Development environment setup completed!${NC}"
echo -e "${YELLOW}To view logs, run: make dev-logs${NC}"
echo -e "${YELLOW}To stop the environment, run: make dev-down${NC}"
echo -e "${YELLOW}To view logs, run: make logs${NC}"
echo -e "${YELLOW}To stop the environment, run: make down${NC}"