Add $(user -g) and whitespace
This commit is contained in:
parent
afc493feb5
commit
34c4451946
|
|
@ -55,6 +55,15 @@ run` will help you generate one. Run it in the root of your app, next to the
|
||||||
|
|
||||||
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app ruby:2.1 bundle install
|
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app ruby:2.1 bundle install
|
||||||
|
|
||||||
|
## Bootstrap a new Rails application
|
||||||
|
|
||||||
|
If you want to generate the scaffolding for a new Rails project, you can do the
|
||||||
|
following:
|
||||||
|
|
||||||
|
docker run -it --rm --user "$(id -u):$(id -g)" -v "$(pwd)":/usr/src/app -w /usr/src/app rails rails new webapp
|
||||||
|
|
||||||
|
This will create a sub-directory named `webapp` inside your current directory.
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
View [license information](https://github.com/rails/rails#license)
|
View [license information](https://github.com/rails/rails#license)
|
||||||
|
|
|
||||||
|
|
@ -43,3 +43,12 @@ run` will help you generate one. Run it in the root of your app, next to the
|
||||||
`Gemfile`:
|
`Gemfile`:
|
||||||
|
|
||||||
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app ruby:2.1 bundle install
|
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app ruby:2.1 bundle install
|
||||||
|
|
||||||
|
## Bootstrap a new Rails application
|
||||||
|
|
||||||
|
If you want to generate the scaffolding for a new Rails project, you can do the
|
||||||
|
following:
|
||||||
|
|
||||||
|
docker run -it --rm --user "$(id -u):$(id -g)" -v "$(pwd)":/usr/src/app -w /usr/src/app rails rails new webapp
|
||||||
|
|
||||||
|
This will create a sub-directory named `webapp` inside your current directory.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue