【puma/rails/capistrano】pumactl stderr: bash: bundle: command not found とかで、deployできない
nginx puma rails 環境で capistranoでdeployしていると上記エラーでdeployできなかった
エラー内容
Command: cd /data/hogehoge/current && ( export RBENV_ROOT="/usr/local/rbenv" RBENV_VERSION="2.4.1" RACK_ENV="staging" ; bundle exec pumactl -S /data/hogehoge/shared/tmp/pids/puma.state -F /data/hogehoge/shared/puma.rb restart ) pumactl stderr: bash: bundle: command not found
解決方法
こちらを参考に、あまりよくないみたいだが
set :rbenv_map_bins, %w(rake gem bundle ruby rails puma pumactl)
と rbenv_map_bins
に puma pumactl
を追加すると問題なくdeployできた。