Update rails.md

Fix parameter error in compose document.
This commit is contained in:
Liu Lantao 2019-08-28 22:06:04 +08:00 committed by Liu Lantao
parent 906605a92a
commit c59542a042
No known key found for this signature in database
GPG Key ID: 08CFD25989F5422C
1 changed files with 5 additions and 4 deletions

View File

@ -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.