Skip to content

Commit

Permalink
Workaround libv8-node issue on Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Aug 30, 2024
1 parent a6d0142 commit e1ffe7d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cookbooks/web/resources/rails_port.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,17 @@
action :delete
end

if platform?("ubuntu") && node[:lsb][:release] == "24.04"
gem_package "libv8-node" do
version "= 18.19.0.0"
gem_binary node[:ruby][:gem]
end

link "/var/lib/gems/3.2.0/gems/libv8-node-18.19.0.0-x86_64-linux/vendor/v8/x86_64-linux-gnu" do
to "x86_64-linux"
end
end

bundle_install "#{rails_directory}" do
action :nothing
user "root"
Expand Down

0 comments on commit e1ffe7d

Please sign in to comment.