From 2856a0f39640f985ae9b75ef82f75476279ab18f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= <15726+Senen@users.noreply.github.com> Date: Thu, 16 Nov 2023 16:45:36 +0100 Subject: [PATCH] Use the absolute path to fnm binary Otherwise the Capistrano task `puma:systemd:config` generates a wrong ExecStart command for puma service that fails on launching. --- config/deploy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deploy.rb b/config/deploy.rb index cfeea4b56..2aa6237bc 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -123,7 +123,7 @@ task :map_node_bins do 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_path)}/fnm exec" } fetch(:fnm_map_bins).each do |command| SSHKit.config.command_map.prefix[command.to_sym].unshift(prefix)