Capistrano, rbenv, upstart, and -su: bundle: command not found

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.

ABOUT THE AUTHOR

Anthony Leon

Author has no description.

NO COMMENTS

Leave a comment

Your email is never published or shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>