LoginSignup
14
14

More than 5 years have passed since last update.

Capistrano で nokogoriの bunlde install でコケる時の対処法

Last updated at Posted at 2014-07-10

Capistrano::Bundler を利用する前提。

nokogiriをシステムのライブラリを利用しつつbundle installするコマンド

$ NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install

をdeploy時もしたいときは以下のように設定しよう。

gem 'capistrano', '~> 3.1'
gem 'capistrano-bundler', '~> 1.1.2'
require 'capistrano/bundler'
config/deploy.rb
・・・いろんな設定・・・

# bundler
set :bundle_env_variables, { nokogiri_use_system_libraries: 1 }

バージョン

  • ruby 2.1.2p95
  • nokogiri 1.6.2.1
14
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
14