capistrano で mysql2 gem のビルドオプションを追加する
370 ワード
以下を 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
Author And Source
この問題について(capistrano で mysql2 gem のビルドオプションを追加する), 我々は、より多くの情報をここで見つけました https://qiita.com/satococoa/items/98ec8a65f74a7d2891c3著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .