Closed gleb-skobinsky closed 2 years ago
I think what’s gone wrong in the first place is that my $HOME/.rbenv directory does not have a “bin” folder and, accordingly, an rbenv executable inside of it. However, when I came I had it already installed on the server, by another team that launched a couple of apps on this machine previously. Probably it’s some older version of rbenv? rbenv —version responds with 1.2.2. Which version of capestrano should be compatible with it?
Okay, so for any future wanderers in search of a solution, I simply ran git init
and git pull https://github.com/rbenv/rbenv.git
to fix my .rbenv installation. This ensured presence of both bin/rbenv and the files it points to through symbolic link.
I’m trying to deploy a Rails server using Capistrano, but it does not seem to manage paths correctly.
At first, I followed the guide at gorails.com, but ended up with the following error:
bash: No such file or directory: /home/my_user/.rbenv/bin/rbenv
I assumed that Capistrano was looking for the rbenv executable, and specified this in the config/deploy.rb file:
set :rbenv_prefix, “/home/my_user/rbenv/bin/rbenv”
However, now I get the following error:
rbenv: bundle: command not found
Here are my configs:
Capfile:
deploy.rb: