Skip to content
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

rbenv system-wide install #253

Closed
mrbrdo opened this issue Nov 8, 2014 · 2 comments
Closed

rbenv system-wide install #253

mrbrdo opened this issue Nov 8, 2014 · 2 comments

Comments

@mrbrdo
Copy link
Contributor

mrbrdo commented Nov 8, 2014

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.

@mrbrdo
Copy link
Contributor Author

mrbrdo commented Nov 8, 2014

Nevermind, the problem was RBENV_ROOT was missing but I see you already fixed this in latest version.

@mrbrdo mrbrdo closed this as completed Nov 8, 2014
@rstacruz
Copy link
Member

rstacruz commented Nov 8, 2014

glad you were able to sort it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants