### Description Configures the `web` service in `docker-compose.yml` file to allow for interactive debugging. `tty` allocates a pseudo terminal while `stdin_open` runs the container with stdin. Running `docker attach WEB_CONTAINER_ID` connects to the running container where the debugger can be interacted with.
One alternative is to run `docker-compose run --rm --service-ports -it web bash` and then `bundle exec rails s -p 3000 -b '0.0.0.0'` inside the container. However, I think leaning into `docker-compose.yml` makes sense here — we get consistent terminal behavior as a default when running `docker compose up` and `docker attach`. ### How has this been tested? I ran `docker-compose up` and then in a separate terminal ran `docker attach WEB_CONTAINER_ID`. When I hit a `debugger` I can then step through the code. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5851 -- Commit Summary -- * Support interactive debugger -- File Changes -- M docker-compose.yml (2) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5851.patch https://github.com/openstreetmap/openstreetmap-website/pull/5851.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5851 You are receiving this because you are subscribed to this thread. Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev