From 34c4451946ff8b8394b776d98559803a3719d096 Mon Sep 17 00:00:00 2001 From: Moghedrin Date: Wed, 31 Dec 2014 16:32:22 -0700 Subject: [PATCH] Add $(user -g) and whitespace --- rails/README.md | 9 +++++++++ rails/content.md | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/rails/README.md b/rails/README.md index 95724e7c2..d881b1fb5 100644 --- a/rails/README.md +++ b/rails/README.md @@ -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 +## 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 View [license information](https://github.com/rails/rails#license) diff --git a/rails/content.md b/rails/content.md index c75b2e508..e9ec8e971 100644 --- a/rails/content.md +++ b/rails/content.md @@ -43,3 +43,12 @@ run` will help you generate one. Run it in the root of your app, next to the `Gemfile`: 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.