Total Blog Views: 109
Blog Status: publish
Created By: swazahmad Created at: 07-28-2021
Please follow the Below steps, As per understadning your application is already Configured with docker
Add Byebug Gem In in your Gemfile.
Add below Line in docker-compose.yml file
After Modifying above file try to run below command
Add debugger In any of the controller For example like below.
Then We need to attach the container that the rails web application is running
Then Open A new TAB CTRL+SHIFT+TAB and run below command to list the containers for our rails web apllication container
Here you will see the list of conatiner you need to Note the CONTAINER ID of backend app
Just final step Run below command
docker container attach 8784a3142417 #Here You need to pass your container id
Now You can start Debugging your rails application using docker container using docker-compose
we have the “Get things executed” lifestyle at our place of work. There are not any excuses, no if’s or however’s in our dictionary. committed to navigating the ship of creativity to create cell answers, we resolve the real-lifestyles troubles of our clients and their clients. Our passion for work has won us many awards, year after 12 months.
© Copyright Shadbox. All Rights Reserved
Rate Blog :
Share on :
Do you have any blog suggestion? please click on the link