Skip to content

Commit 02e4d4e

Browse files
committed
guide(dev): use BUNDLE_ONLY variable to install required deps
on rake guides:generate:html for translated guides. without option for bundle install was deprecated years ago. Signed-off-by: Takuya Noguchi <[email protected]>
1 parent 1e3fcd4 commit 02e4d4e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

guides/source/contributing_to_ruby_on_rails.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,9 @@ Note that translations are not submitted to the Rails repository; your work live
166166
To generate the guides in HTML format, you will need to install the guides dependencies, `cd` into the *guides* directory, and then run (e.g., for it-IT):
167167

168168
```bash
169-
# only install gems necessary for the guides. To undo run: bundle config --delete without
170-
$ bundle install --without job cable storage test db
169+
$ BUNDLE_ONLY=default:doc bundle install
171170
$ cd guides/
172-
$ bundle exec rake guides:generate:html GUIDES_LANGUAGE=it-IT
171+
$ BUNDLE_ONLY=default:doc bundle exec rake guides:generate:html GUIDES_LANGUAGE=it-IT
173172
```
174173

175174
This will generate the guides in an *output* directory.

0 commit comments

Comments
 (0)