Create docker/entrypoint.sh to run alembic migrations on API startup. Create backend/worker.py with Celery app config for the compose worker service. Fix README single-container port (8000) and add production compose documentation. Add 27 tests (stack integration + worker) verifying all Docker/compose artifacts are present, consistent, and the /health endpoint responds correctly.
10 lines
252 B
Bash
10 lines
252 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# Run database migrations
|
|
echo "Running database migrations..."
|
|
cd /app && alembic upgrade head
|
|
|
|
# Start the application
|
|
echo "Starting PromptLooper API..."
|
|
exec uvicorn main:app --host 0.0.0.0 --port 8000 --app-dir /app/backend "$@"
|