Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Bundler for parallel gem installs
* Set it globally for OS X. * Determine number of cores dynamically. * Pick one number less than number of cores to avoid deadlock errors. http://archlever.blogspot.com/2013/09/lies-damned-lies-and-truths-backed-by.html * Only install `--pre` for Bundler. * Remove `pg` and `unicorn` gems as they will be installed during `bundle` for a Rails project.
- Loading branch information
Dan Croak
committed
Dec 1, 2013
1 parent
098e418
commit ef81f6e
Showing
9 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fancy_echo "Configuring Bundler for faster, parallel gem installation ..." | ||
number_of_cores=`nproc` | ||
bundle config --global jobs `expr $number_of_cores - 1` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fancy_echo "Configuring Bundler for faster, parallel gem installation ..." | ||
number_of_cores=`sysctl -n hw.ncpu` | ||
bundle config --global jobs `expr $number_of_cores - 1` |