feat: Add polyglot support to dev and build scripts for Node.js and .NET services.
This commit is contained in:
@@ -37,19 +37,23 @@ if [ -z "$DATABASE_URL" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# EN: Start infrastructure services (Redis for caching, Traefik for routing)
|
||||
# VI: Khởi động infrastructure services (Redis cho caching, Traefik cho routing)
|
||||
echo "📦 Starting infrastructure (Redis, Traefik)... / Khởi động infrastructure (Redis, Traefik)..."
|
||||
# EN: Start infrastructure services and .NET backends
|
||||
# VI: Khởi động infrastructure services và .NET backends
|
||||
echo "📦 Starting Docker containers (Infra + .NET Services)..."
|
||||
cd deployments/local
|
||||
run_compose up -d
|
||||
cd ../..
|
||||
|
||||
# EN: Give Redis time to fully start before starting services
|
||||
# VI: Cho Redis thời gian để khởi động đầy đủ trước khi khởi động services
|
||||
echo "⏳ Waiting for Redis to be ready... / Đang chờ Redis sẵn sàng..."
|
||||
sleep 3
|
||||
# EN: Give Redis time to fully start
|
||||
# VI: Cho Redis thời gian để khởi động đầy đủ
|
||||
echo "⏳ Waiting for services to stabilize..."
|
||||
sleep 5
|
||||
|
||||
# EN: Start all microservices using pnpm dev
|
||||
# VI: Khởi động tất cả microservices sử dụng pnpm dev
|
||||
echo "🚀 Starting services... / Khởi động services..."
|
||||
pnpm dev
|
||||
# EN: Start Node.js apps/services using pnpm dev
|
||||
# VI: Khởi động Node.js apps/services sử dụng pnpm dev
|
||||
echo "🚀 Starting Node.js apps (Frontend/BFF)..."
|
||||
if command -v pnpm &> /dev/null; then
|
||||
pnpm dev
|
||||
else
|
||||
echo "⚠️ pnpm not found. Only Docker services are running."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user