loading...

Discussion on: Dockerize the multi-services application for local development

Collapse
alexanderrykhlitskiy profile image
Alexander Rykhlitskiy

There are two options using binding.pry:

1) Attach to running server container after hitting pry with

docker attach $(docker-compose ps | grep app_1 | awk '{print $1}')

2) Run server with this command instead of docker-compose up

docker-compose run --service-ports app /bin/sh -c "rm -f tmp/pids/server.pid && rails s -b 0.0.0.0"