以下を 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
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
以下を 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
Register as a new user and use Qiita more conveniently
Go to list of users who liked