-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bash: bundle: command not found when deploying #149
Comments
Got the same error, it's quite strange cause I can still deploy from my Mac (where I didn't do a bundle install from some times now). I don't use capistrano-bundler but I use capistrano-rvm and I found the error. You have to require capistrano-puma after capistrano-rvm or it won't detect rvm usage. |
if you use bundler, you should add capistrano-bundler. |
@Grafikart Thanks for the comment! I'm using rbenv instead of rvm, so maybe we don't have the same problem. @seuros Thank you for pointing out about capistrano-bundler. I just tried to add it as following. My Gemfile:
My Capfile:
But after adding capistrano-bundler like this, the command |
in the staging server double check that you have bundler installer cd /var/www/rails-apps/rails-api/current
gem install bundler |
@seuros Thanks for the quick response. I checked that bundler was installed:
I've also confirmed that by adding the |
When I was deploying with
bin/cap staging puma:stop
, got this error:My observation is that when running the
pumactl
command, theRBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.3 ~/.rbenv/bin/rbenv exec
part was not included, which makes this command fail.my Gemfile is:
I was using the github version of capistrano3-puma to avoid issue #120
capfile
The text was updated successfully, but these errors were encountered: