]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/resources/rails_port.rb
Revert "Use --ignore-engines when installing node modules with yarn"
[chef.git] / cookbooks / web / resources / rails_port.rb
index 564cbd0adf1cd5e8498ebe40b5054f4fde649eca..16fde7131cc1e76758202521edb8f9afb25f0f8c 100644 (file)
@@ -407,7 +407,7 @@ action :create do
 
   execute "#{rails_directory}/package.json" do
     action :nothing
-    command "yarnpkg install --ignore-engines"
+    command "bundle#{new_resource.ruby} exec rake yarn:install"
     environment "HOME" => rails_directory,
                 "RAILS_ENV" => "production"
     cwd rails_directory