Local-first setup for testing the pipeline without deploying app or database to Railway.
- Run local setup:
bash scripts/setup_local.sh
- Fill local env:
- Edit
.env.local - Keep
DATABASE_URL=postgresql://jdboss:jdboss@localhost:5432/jdbossfor local Postgres.
- Edit
- Start backend:
source .venv/bin/activateuvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
- Verify:
curl http://localhost:8000/health
To let the agent create branches and open PRs locally, configure one of:
- Personal access token (simplest for local):
- Set
GITHUB_ACCESS_TOKEN(token withrepoaccess)
- Set
- GitHub App credentials:
- Set both
GITHUB_APP_IDandGITHUB_APP_PRIVATE_KEY
- Set both
Also required:
GITHUB_REPOSITORY=owner/repoGITHUB_BRANCH=agent/migration(or any working branch)GITHUB_BASE_BRANCH=main
The app will use whichever auth is provided and keep LangChain GitHubToolkit enabled for opening PRs.
- Start DB:
docker compose -f docker-compose.local.yml up -d postgres - Stop DB:
docker compose -f docker-compose.local.yml down - Reset DB volume:
docker compose -f docker-compose.local.yml down -v
scripts/setup.shandscripts/push_secrets.share Railway-oriented workflows and can still be used for cloud deployment.- For local iteration, prefer
.env.local+scripts/setup_local.sh.