Merge pull request #362 from infosiftr/rails-fix

Rails, no need to bundle install in the throw-away container
This commit is contained in:
Tianon Gravi 2015-10-08 10:19:44 -07:00
commit acf1079237
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ $ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.1 bundle install
If you want to generate the scaffolding for a new Rails project, you can do the following:
```console
$ docker run -it --rm --user "$(id -u):$(id -g)" -v "$PWD":/usr/src/app -w /usr/src/app rails rails new webapp
$ docker run -it --rm --user "$(id -u):$(id -g)" -v "$PWD":/usr/src/app -w /usr/src/app rails rails new --skip-bundle webapp
```
This will create a sub-directory named `webapp` inside your current directory.