展開ユーザーとして VPS に ssh して実行するbundle -v
とBundler version 1.1.5
、期待どおりになります。
を実行するssh deployment@123.123.123.123 bundle -v
と、bash: bundle: command not found
ssh 経由でコマンドを実行しているバンドルが表示されないのはなぜですか?
より詳しい情報
$ cat ~/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
# If not running interactively, don't do anything
[ -z "$PS1" ] && return