Get processor count with ruby (on linux and mac)

closes #7830
parent c2fa0b1e
......@@ -3,6 +3,7 @@
## Refactor
## Bug fixes
* Add compatibility with macOS to `script/configure_bundler` [#7830](https://github.com/diaspora/diaspora/pull/7830)
## Features
......
......@@ -2,6 +2,7 @@
# frozen_string_literal: true
require_relative "../config/bundler_helper"
require "etc"
rails_env = BundlerHelper.rails_env
database = BundlerHelper.database
......@@ -13,7 +14,7 @@ def config(option)
system("#{File.join(__dir__, '../bin/bundle')} config --local #{option}")
end
config("jobs #{`nproc`}")
config("jobs #{Etc.nprocessors}")
config("with #{database}")
if rails_env == "production"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment