From c59542a04295460dda59fc99e700b4acba7cf7bf Mon Sep 17 00:00:00 2001 From: Liu Lantao Date: Wed, 28 Aug 2019 22:06:04 +0800 Subject: [PATCH] Update rails.md Fix parameter error in compose document. --- compose/rails.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/compose/rails.md b/compose/rails.md index 19312ec589..911e91772e 100644 --- a/compose/rails.md +++ b/compose/rails.md @@ -93,11 +93,12 @@ to link them together and expose the web app's port. With those files in place, you can now generate the Rails skeleton app using [docker-compose run](reference/run.md): - docker-compose run web rails new . --force --no-deps --database=postgresql + docker-compose run --no-deps web rails new . --force --database=postgresql -First, Compose builds the image for the `web` service using the -`Dockerfile`. Then it runs `rails new` inside a new container, using that -image. Once it's done, you should have generated a fresh app. +First, Compose builds the image for the `web` service using the `Dockerfile`. +The `--no-deps` tells compose not to start linked services. Then it runs +`rails new` inside a new container, using that image. Once it's done, you +should have generated a fresh app. List the files.