capistrano / rbenv

Idiomatic rbenv support for Capistrano 3.x
MIT License
203 stars 60 forks source link

deploy to server, where rbenv isn't used at all #87

Open philister opened 5 years ago

philister commented 5 years ago

Hi,

is it correct that I can not install on both server A and server B? Where Server A is running rbenv, and Server B is not running rbenv at all. :rbenv_roles are defining the roles, where task :validate is running. But :map_bins is execute in any case, which leads to /home/app/.rbenv/bin/rbenv: No such file or directory (of course).

Am I missing something or what approach could lead to a solution?

I tried

task :map_bins do
  on release_roles(fetch(:rbenv_roles)) do
[...]

but this does not work out of the box

Thanks and regards, Phil

ivanovv commented 4 years ago

Hey,

I know it is a pretty rare use case, and maybe there are easer ways to do it, but I want to migrate part of my farm from rbenv to system ruby (basically, going from infrastructure managed by hand to Ansible managed servers) and at some point I need to run these two types of servers in parallel, basically, something very similar what Phil tries to do.

Is there a way to manage rbenv per server?