From 28a998bd8c5b3d14993d1fea4574d31307a8ee26 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Fri, 4 Feb 2022 17:08:07 +0000 Subject: [PATCH] Add docker-compose debug instructions to readme --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f75b018c9..c630f3a1b 100644 --- a/README.md +++ b/README.md @@ -41,13 +41,18 @@ The Rails server will start on . ```sh docker-compose build -docker-compose run --rm app rails db:create -docker-compose up ``` +To be able to debug with Pry run the app using +```sh +docker-compose run --service-ports app +``` + +If this is not needed you can run `docker-compose up` as normal + The Rails server will start on . -Note `docker-compose` runs the production docker image (`RAILS_ENV=production`) as the Dockerfile doesn’t include development gems to keep the image size down. + ## Infrastructure