Update node.js, install bun, for Rails 8.0 upgrade
This commit is contained in:
		
							parent
							
								
									5777a45f0a
								
							
						
					
					
						commit
						cab766c806
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user