If you’re running into the following error attempting to deploy via Capistrano with rbenv, foreman, and upstart:
-su: bundle: command not found
Then, be sure to take the export and eval rbenv statements in your ~/.bashrc file and copy them to the bottom of your ~/.profile
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
As this path will not be available to the user to run the necessary commands otherwise.