Repository navigation
Empacota o front numa imagem para não depender da pasta de origem - #14
Merged
Merged
Conversation
O bind mount de web/public apontava para o diretório de origem. Quando o worktree da execução era removido, ou a pasta recriada por um checkout, o nginx ficava sem arquivos e respondia 403. Agora o front é copiado para a imagem no deploy, como os serviços. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 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.
Problema
Depois do merge do #13, o front respondia 403 Forbidden, embora os containers estivessem saudáveis.
O container
webmontava./web/publicdireto do diretório de origem. Ogit checkoutapagou e recriou essa pasta, e o mount continuou apontando para a pasta antiga, já removida. O nginx ficou sem arquivos para servir.O mesmo aconteceria em toda execução do piloto aprovada no G7: o deploy roda dentro do worktree da execução, o supervisor remove o worktree no fim e o ambiente liberado continua no ar sem os arquivos do front.
Correção
web/Dockerfilecopianginx.confepublic/para a imagem.webdo compose passa a usarbuildem vez devolumes. Odeploy_homolog.sh up --buildgera a imagem a cada deploy, como já faz com os serviços.Verificação
websem nenhum mount.GET /responde 200, e o front carrega no navegador com os dados.pytest: 80 testes passando.🤖 Generated with Claude Code