From cab766c8061f13662575a715578a9cecc46c67ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 29 Apr 2025 17:51:28 +0400 Subject: [PATCH] Update node.js, install bun, for Rails 8.0 upgrade --- .../kosmos-akkounts/recipes/default.rb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/site-cookbooks/kosmos-akkounts/recipes/default.rb b/site-cookbooks/kosmos-akkounts/recipes/default.rb index 8ffa7ab..2311aa5 100644 --- a/site-cookbooks/kosmos-akkounts/recipes/default.rb +++ b/site-cookbooks/kosmos-akkounts/recipes/default.rb @@ -24,11 +24,10 @@ package "libvips" include_recipe 'redisio::default' include_recipe 'redisio::enable' -include_recipe 'kosmos-nodejs' -npm_package "yarn" do - version "1.22.4" -end +node.override["nodejs"]["repo"] = "https://deb.nodesource.com/node_20.x" +include_recipe 'kosmos-nodejs' +npm_package "bun" ruby_version = "3.3.0" ruby_path = "/opt/ruby_build/builds/#{ruby_version}" @@ -303,12 +302,12 @@ execute "bundle install" do command "bundle install --without development,test --deployment" end -execute "yarn install" do - environment deploy_env - user deploy_user - cwd deploy_path - command "yarn install --pure-lockfile" -end +# execute "yarn install" do +# environment deploy_env +# user deploy_user +# cwd deploy_path +# command "yarn install --pure-lockfile" +# end execute 'rake db:migrate' do environment deploy_env