title: Rails 6 - Nokogiri LoadError conflict between development and production (x86_64-darwin & x86_64-linux)
body: <p>When I try deploy using <code>capistrano</code> gem I get:</p>
  <pre><code>rake stderr: rake aborted!
  LoadError: cannot load such file -- nokogiri/nokogiri
  </code></pre>
  <p>In my <code>Gemfile.lock</code> I can see that <code>nokogiri</code> is installed <code>nokogiri (1.11.2-x86_64-darwin)</code> which is for mac since I'm using mac for development, and when I do <code>gem list</code> in my production which is <code>ubuntu</code> I see <code>nokogiri (1.11.2 x86_64-linux)</code>.</p>
  <p>Based on one of the answers on SO, I removed <code>-x86_64-darwin</code> from <code>nokogiri (1.11.2-x86_64-darwin)</code> but this gave me:</p>
  <pre><code>Downloading nokogiri-1.11.2 revealed dependencies not in the API or the lockfile (mini_portile2 (~&gt; 2.5.0)).
  Either installing with `--full-index` or running `bundle update nokogiri` should fix the problem.
  </code></pre>
  <p>I ran <code>bundle update nokogiri</code> with no luck and it only said: <code>Bundler attempted to update nokogiri but its version stayed the same</code>.</p>
  <p>I know this issue <em>might</em> happen since the <code>nokogiri</code> in my local is for mac and for development is for Linux.</p>
  <p>I'm not sure what I can do to resolve this issue. Any feedback is appreciated.</p>
  <pre><code>Rails: 6.1.3
  Ruby: 2.5.8
  </code></pre>