Skip to content

Commit

Permalink
refactoring: Making node modules as not shared directory
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Jan 6, 2025
1 parent f796339 commit 7269b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
set :nvm_type, :user
set :nvm_node, 'v22.11.0'
set :nvm_map_bins, %w{node npm pnpm}
set :pnpm_flags, %w{--silent} + ["--store=#{shared_path}/node_modules"]
set :pnpm_flags, %w{--silent}

set :repository_cache, "git_cache"
set :deploy_via, :remote_cache

set :keep_releases, 3
set :keep_assets, 3

set :init_system, :systemd

set :passenger_restart_with_sudo, true
set :passenger_roles, :web

append :linked_files, '.env.local'
append :linked_dirs, 'node_modules'

namespace :pnpm do
after 'pnpm:install', 'pnpm:build'
Expand Down

0 comments on commit 7269b7a

Please sign in to comment.