Skip to content

Commit

Permalink
Merge pull request #5303 from consuldemocracy/fix_fnm_setup
Browse files Browse the repository at this point in the history
Map node binaries whenever `rvm1:hook` is called and evaluate the `fnm_setup_command` dynamically
  • Loading branch information
Senen committed Oct 24, 2023
2 parents 834da50 + ddc8cfd commit f36248f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def main_deploy_server
Rake::Task["delayed_job:default"].clear_actions
Rake::Task["puma:smart_restart"].clear_actions

after "git:create_release", "map_node_bins"
after "rvm1:hook", "map_node_bins"

after :updating, "install_node"
after :updating, "install_ruby"
Expand Down Expand Up @@ -127,7 +127,7 @@ def main_deploy_server
on roles(:app) do
within release_path do
with rails_env: fetch(:rails_env) do
prefix = "#{fetch(:fnm_setup_command)} && fnm exec"
prefix = -> { "#{fetch(:fnm_setup_command)} && fnm exec" }

fetch(:fnm_map_bins).each do |command|
SSHKit.config.command_map.prefix[command.to_sym].unshift(prefix)
Expand Down

0 comments on commit f36248f

Please sign in to comment.