Update Vibe Kanban setup and scripts

- Added new entries to .gitignore for environment files and dynamically generated Docker Compose files.
- Updated documentation to reflect the new path for the Vibe Kanban dev server script.
- Enhanced task composition scripts to extract TASK_SLOT from TASK_ID, ensuring unique Orleans ports and preventing conflicts.
- Removed the old vibe-dev-server script, consolidating functionality into the new structure.
This commit is contained in:
2025-12-31 04:36:20 +07:00
parent 2e0baa45c0
commit ab08e0241b
13 changed files with 1535 additions and 35 deletions

View File

@@ -17,8 +17,17 @@ DB_NAME="managing_$(echo "$TASK_ID" | tr '[:upper:]' '[:lower:]')"
ORLEANS_DB_NAME="orleans_$(echo "$TASK_ID" | tr '[:upper:]' '[:lower:]')"
TASK_ID_LOWER="$(echo "$TASK_ID" | tr '[:upper:]' '[:lower:]')"
# Calculate unique task slot based on port offset (for Orleans clustering)
TASK_SLOT=$((PORT_OFFSET / 10 + 1))
# Extract TASK_SLOT from TASK_ID numeric part (e.g., TASK-5439 -> 5439)
# This ensures unique Orleans ports for each task and prevents port conflicts
TASK_SLOT=$(echo "$TASK_ID" | grep -oE '[0-9]+' | head -1)
if [ -z "$TASK_SLOT" ] || [ "$TASK_SLOT" = "0" ]; then
# Fallback: use port offset calculation if TASK_ID doesn't contain numbers
TASK_SLOT=$((PORT_OFFSET / 10 + 1))
fi
# Calculate Orleans ports based on TASK_SLOT (for display purposes)
ORLEANS_SILO_PORT_CALC=$((11111 + (TASK_SLOT - 1) * 10))
ORLEANS_GATEWAY_PORT_CALC=$((30000 + (TASK_SLOT - 1) * 10))
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
@@ -75,8 +84,8 @@ echo "✅ Created $COMPOSE_FILE"
echo " PostgreSQL: localhost:$POSTGRES_PORT"
echo " Redis: localhost:$REDIS_PORT"
echo " API will run via dotnet run on port: $API_PORT"
echo " Orleans Silo: localhost:$ORLEANS_SILO_PORT"
echo " Orleans Gateway: localhost:$ORLEANS_GATEWAY_PORT"
echo " Orleans Silo: localhost:$ORLEANS_SILO_PORT_CALC (based on TASK_SLOT=$TASK_SLOT)"
echo " Orleans Gateway: localhost:$ORLEANS_GATEWAY_PORT_CALC (based on TASK_SLOT=$TASK_SLOT)"
echo " InfluxDB: Using main instance at localhost:8086"
echo " Task Slot: $TASK_SLOT"
echo " Task Slot: $TASK_SLOT (extracted from TASK_ID: $TASK_ID)"