Files
pos-system/scripts/dev/start-service.sh
Ho Ngoc Hai 4da46b5b8e Sure! Pl
2025-12-27 01:31:10 +07:00

23 lines
334 B
Bash
Executable File

#!/bin/bash
set -e
SERVICE=$1
if [ -z "$SERVICE" ]; then
echo "Usage: $0 <service-name>"
echo "Example: $0 auth-service"
exit 1
fi
echo "🚀 Starting $SERVICE..."
# Check if service exists
if [ ! -d "services/$SERVICE" ]; then
echo "❌ Service $SERVICE not found"
exit 1
fi
cd "services/$SERVICE"
pnpm dev