LoginSignup
4
3

More than 5 years have passed since last update.

capistrano で mysql2 gem のビルドオプションを追加する

Posted at

以下を deploy.rb とかに付け足しておけば --with-mysql-dir のオプションを足した状態で mysql2 gem のインストールをしてくれる。

before "bundle:install" do
  run "BUNDLE_GEMFILE=#{current_path}/Gemfile bundle config build.mysql2 '--with-mysql-dir=/usr/local/mysql'"
end
4
3
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
4
3