There are two options using binding.pry:
binding.pry
1) Attach to running server container after hitting pry with
pry
docker attach $(docker-compose ps | grep app_1 | awk '{print $1}')
2) Run server with this command instead of docker-compose up
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"
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There are two options using
binding.pry
:1) Attach to running server container after hitting
pry
with2) Run server with this command instead of
docker-compose up