Open lserman opened 10 years ago
I'm wondering the same thing, I also tried to set the ruby version to be global rbenv_ruby(rb) { global true }
, but this is on a per user basis and only vagrant is getting it.
haven't tried it myself, but i guess that you should add rbenv users to the rbenv group or make a ruby installation global
Hello,
My cookbook creates an
apps
user that I want to use for Rails deployment. I'm testing my recipe with Vagrant using this JSON:I want to use the
apps
user for Rails deployment on my server. When I start vagrant though, only thevagrant
user has access to rbenv. The apps user exists but receivesIt looks like rbenv is not being added to the $PATH like it is for the default vagrant user. How do I install rbenv for my apps user? I'd prefer not to have to edit $PATH myself. Here is the rbenv portion of my recipe (
apps
is created before this point):