mattbrictson / tomo

A friendly CLI for deploying Rails apps ✨

Home Page:https://tomo.mattbrictson.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues with PATH (bundler:install says bash: bundle: command not found)

amit opened this issue · comments

Sorry for polluting the git repo with support question, but I have been using tomo for automatic deploys from github to my VPS without issues and for the last few commits I am getting the error "bash: bundle: command not found" for the bundler:install step in deploy.

I added a plugin to just print the PATH and the path does include the .rbenv/shims which has the bundler stub.

Strange that this started happening recently and was working before.

I tried the --debug and --trace flags, but they don't show why it cannot find bundler. In fact the ssh command they show works great from the command line!

I just added the paths to .bashrc (it was in .bash_profile earlier). Not sure what changed recently (maybe github is no longer invoking ssh as login shell). But that fixed the issue.