Files
livegraphs-django/start.sh
Kaj Kowalski 81d1469e18 feat(qa): add Playwright MCP test agents & config
Introduces Playwright testing agents (planner, generator, healer) powered by MCP to plan, generate, and heal end-to-end tests.

Configures the MCP server and integrates agent workflows into OpenCode and GitHub chat modes to enable AI-assisted testing.

Adds Playwright test dependency and updates lockfile; adjusts markdown lint ignores to reduce noise.

Adds contributor guidance for Claude Code to streamline local development.

Normalizes shell script shebangs to use /usr/bin/env bash for portability.

Enables automated browser testing workflows and resilient test maintenance within AI-enabled tooling.
2025-11-05 17:25:01 +01:00

43 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
# Set UV_LINK_MODE to copy to avoid hardlink warnings
export UV_LINK_MODE=copy
# Check if Redis is running
if ! redis-cli ping >/dev/null 2>&1; then
echo "Starting Redis server..."
redis-server --daemonize yes
sleep 1
# Verify Redis is now running
if redis-cli ping >/dev/null 2>&1; then
echo "✅ Redis server is now running"
else
echo "❌ Failed to start Redis server"
echo "Falling back to SQLite for Celery"
export CELERY_BROKER_URL=sqla+sqlite:///dashboard_project/celery.sqlite
export CELERY_RESULT_BACKEND=db+sqlite:///dashboard_project/results.sqlite
fi
else
echo "✅ Redis server is already running"
fi
# Set environment variables for Redis if it's running
if redis-cli ping >/dev/null 2>&1; then
export CELERY_BROKER_URL=redis://localhost:6379/0
export CELERY_RESULT_BACKEND=redis://localhost:6379/0
echo "Using Redis for Celery broker and result backend"
else
export CELERY_BROKER_URL=sqla+sqlite:///dashboard_project/celery.sqlite
export CELERY_RESULT_BACKEND=db+sqlite:///dashboard_project/results.sqlite
echo "Using SQLite for Celery broker and result backend"
fi
# Start the application using foreman
foreman start