Repository navigation
feat(deploy): infra para Vercel (frontend) e Railway (backend) - #39
Merged
Merged
Conversation
O vercel.json da raiz declarava o backend FastAPI como serviço da Vercel, o que não serve (SQLite, caches e pré-busca em memória). Agora a Vercel hospeda só o frontend (Root Directory = frontend, VITE_API_URL apontando para a Railway) e o backend vai para a Railway com healthcheck em /health e uma réplica. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Dockerfile (uvicorn na PORT do host, com --proxy-headers), .dockerignore, driver psycopg e conversão de postgresql:// e postgres:// (formato da Railway) para postgresql+psycopg://, e CORS_ORIGINS no .env.example. Sem mudança de docs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Por quê
O deploy da Railway falhava (Railpack sem Dockerfile) e o
vercel.jsonda raiz tentava hospedar o backend FastAPI na Vercel. Esta PR substitui a #37 sem mexer no CLAUDE.md e só com a seção de passo a passo nodocs/13.O que muda
vercel.jsonda raiz removido;frontend/vercel.jsonsó com o Vite (Root Directory =frontendno painel).backend/Dockerfile+.dockerignore(uvicorn naPORTdo host,--proxy-headers).backend/railway.toml: build por Dockerfile, healthcheck em/health, uma réplica.psycopg[binary]e conversão depostgresql:///postgres://(formato da Railway) parapostgresql+psycopg://;CORS_ORIGINSno.env.example.docs/13: passo a passo da Railway e da Vercel (só a seção "Passo a passo do deploy").schemas.pye espera da abertura no contraste e2e.Testes
ruff check/format --checklimpos;pytest: 631 passaram, 1 pulado.docker buildnão rodado localmente.Depois do merge (painéis)
Vercel: Root Directory
frontend+VITE_API_URL. Railway: Root Directorybackend, Postgres,DATABASE_URL=${{Postgres.DATABASE_URL}},APP_ENV=prod,JWT_SECRET,WCL_CLIENT_ID/SECRET,CORS_ORIGINS,PORT=8000.🤖 Generated with Claude Code