You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It uses chef-rbenv which installs a system version by default. So I set :rbenv_path, "/opt/rbenv" and that's fine.
However it will add /home/deploy/.rbenv/shims to path instead of /opt/rbenv/shims. This is weird because if I ssh onto the vagrant box myself, path will be correct (/opt/rbenv/shims). Perhaps it has to do with shell interactivity?
Normally I would open this with rbenv itself but I've seen an issue discussing system-wide installs and it seems the devs are not interested in providing any support around this area.
I'm not sure if capistrano exhibits this issue also because they seem to explicitly prefix each command with PATH=/opt/rbenv/shims:$PATH /usr/bin/env (at least with config from intercity_sample_app).
For reproducing (if needed) clone the rails-chef repo and set it up, in Vagrantfile fix the public ssh key for deploy user, then deploy (e.g. intercity_sample_app) with mina, user deploy port 2222.
The text was updated successfully, but these errors were encountered:
Hey,
I'm trying out deployment onto a server provisioned via the chef script from here: https://github.com/intercity/chef-repo
It uses chef-rbenv which installs a system version by default. So I
set :rbenv_path, "/opt/rbenv"
and that's fine.However it will add
/home/deploy/.rbenv/shims
to path instead of/opt/rbenv/shims
. This is weird because if I ssh onto the vagrant box myself, path will be correct (/opt/rbenv/shims
). Perhaps it has to do with shell interactivity?Normally I would open this with rbenv itself but I've seen an issue discussing system-wide installs and it seems the devs are not interested in providing any support around this area.
I'm not sure if capistrano exhibits this issue also because they seem to explicitly prefix each command with
PATH=/opt/rbenv/shims:$PATH /usr/bin/env
(at least with config from intercity_sample_app).For reproducing (if needed) clone the rails-chef repo and set it up, in Vagrantfile fix the public ssh key for deploy user, then deploy (e.g. intercity_sample_app) with mina, user deploy port 2222.
The text was updated successfully, but these errors were encountered: