Quick tip for Ruby developer who are using Docker and can’t debug their code with pry.
For those who don’t know, pry is an awesome IRB shell for Ruby…
This is a simple .docker-compose.yml
file with a web app and a MySql database.
All you have to do is run your container with the following command:
This is my HomeController
Trying things out
It is important to notice that it works also with byebug
Hope it helps :)