Skip to content

Commit b753eb0

Browse files
authored
Merge pull request docker#11520 from Lax/master
[doc] Fix parameter error in compose rails document
2 parents 9364113 + 2a40c14 commit b753eb0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

compose/rails.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,12 @@ to link them together and expose the web app's port.
9393
With those files in place, you can now generate the Rails skeleton app
9494
using [docker-compose run](reference/run.md):
9595

96-
docker-compose run web rails new . --force --no-deps --database=postgresql
96+
docker-compose run --no-deps web rails new . --force --database=postgresql
9797

98-
First, Compose builds the image for the `web` service using the
99-
`Dockerfile`. Then it runs `rails new` inside a new container, using that
100-
image. Once it's done, you should have generated a fresh app.
98+
First, Compose builds the image for the `web` service using the `Dockerfile`.
99+
The `--no-deps` tells Compose not to start linked services. Then it runs
100+
`rails new` inside a new container, using that image. Once it's done, you
101+
should have generated a fresh app.
101102

102103
List the files.
103104

0 commit comments

Comments
 (0)