Skip to content

Arreglar el entorno local para que el proyecto vuelva a levantar - #406

Open
lapencadev wants to merge 1 commit into
CodelyTV:mainfrom
lapencadev:fix/docker-setup
Open

lapencadev wants to merge 1 commit into
CodelyTV:mainfrom
lapencadev:fix/docker-setup

Conversation

@lapencadev

Copy link
Copy Markdown

Al intentar levantar el proyecto desde cero me encontré con que no arrancaba. Esto es lo que he tenido que cambiar:

  • xdebug 3.3.0 ya no compila con la imagen actual de php:8.3-fpm-alpine. Lo he subido a 3.4.2.
  • La Symfony CLI, desde la 5.10.3, solo escucha en 127.0.0.1 dentro del contenedor, así que las apps no se veían desde fuera. He añadido --allow-all-ip a los symfony serve.
  • make clean-cache hacía rm -rf apps/*/*/var y se llevaba por delante los .gitkeep que están versionados. Ahora borra solo el contenido.
  • El README hablaba de make build y make deps, que ya no existen. Lo he cambiado a make composer-install y make start.

Con esto, make composer-install && make start && make test funciona y todo pasa.

- Bump xdebug to 3.4.2: 3.3.0 no longer compiles on the current php:8.3-fpm-alpine image
- Add --allow-all-ip to symfony serve: Symfony CLI >= 5.10.3 only listens on 127.0.0.1, so the apps were unreachable from the host
- Keep tracked var/.gitkeep files when running make clean-cache
- Update README with the existing Makefile targets (make build / make deps no longer exist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant