Update node.js, install bun, for Rails 8.0 upgrade

This commit is contained in:
Râu Cao 2025-04-29 17:51:28 +04:00
parent 5777a45f0a
commit cab766c806
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -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