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.
This commit is contained in:
Senén Rodero Rodríguez
2023-11-16 16:45:36 +01:00
parent f7164d3401
commit 2856a0f396

View File

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