Samuel#263#264
Merged
Merged
Conversation
api_service.dart e auth_service.dart usavam _baseUrl hardcoded para localhost:8000, o que quebraria em produção. Passam a usar kBaseUrl, já parametrizável via --dart-define=FOCUS_API_BASE_URL.
- SECRET_KEY, DEBUG e ALLOWED_HOSTS passam a vir de env vars - CORS restrito a FRONTEND_URL quando definida (mantem liberado em dev) - Banco configurado via DATABASE_URL (dj-database-url), com fallback para o SQLite local - WhiteNoise para servir estaticos do admin - requirements.txt limpo (estava com o freeze de todo o ambiente local, incluindo pacotes nao usados pelo projeto) e com gunicorn, whitenoise, dj-database-url e psycopg2-binary adicionados - build.sh com os passos de build usados no Render
- ci.yml passa a rodar tambem em push para dev, com um job novo que builda o Flutter Web e publica no GitHub Pages apos os testes passarem (branch dev apenas) - render.yaml define o web service Django + Postgres gratuitos no Render, com auto-deploy nativo pela branch dev (sem precisar de deploy hook)
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.
No description provided.