-
Notifications
You must be signed in to change notification settings - Fork 301
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
Puma commands on remote server fail to use rbenv version of bundler #206
Comments
I never installed bundler globally and this error is not showing up. |
Ok, let me dig deeper and see how can I help you replicate it. Thanks! |
I managed to fix the issue by adding 'puma' and 'pumactl' myself to deploy.rb, where :rbenv_map_bins is set (in theory) initially, like this
The problem seems to be that the Before, in 1.2.1, those variables were set in the rake task itself, and I assume they were executed after the initial setup of the vars. I'm not sure if this order issue is something that only affects me (and probable the others with similar issues) or its the nature of Capistrano itself and how it handle plugins. It works now but probably all the other varibles set in set_default are being overwritten too and thats not the intended effect. Let me know if I can help you with something else to try. Thanks! |
Oh, you should not set that variable. Use This will avoid to conflict with other plugins. |
Ok. I checked the capistrano/rbenv repo and they still instruct people to do it with set on the deploy.rb: https://github.com/capistrano/rbenv#usage Looks like they have an old open pull request that tries to fix this, but it doesn't seem like they want to merge it: capistrano/rbenv#58 This also affects other plugins: seuros/capistrano-sidekiq#124 Maybe it could help if you add this advise on the Readme, at least until rbenv fixes the problem. Thanks for the help 👍 |
Hi,
In previous versions (using also capistrano-rbenv), any command related to puma had the correct path and env vars set, this is the puma:restart command that executes on the server using capistrano-puma 1.2.1
With the new version (I tried with 3.0.2), the command was:
Bundler is not installed globally and it should be run like it was in version 1.2.1 (with the
RBENV_ROOT=$HOME/.rbenv RBENV_VERSION=2.4.0 $HOME/.rbenv/bin/rbenv exec
before thebundle exec
), this is probably similar to #188, and #149Thanks!
The text was updated successfully, but these errors were encountered: