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
I want to use the apps user for Rails deployment on my server. When I start vagrant though, only the vagrant user has access to rbenv. The apps user exists but receives
The program 'rbenv' is currently not installed. You can install it by typing:
sudo apt-get install rbenv
It 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):
# Rbenv
include_recipe 'rbenv::default'
include_recipe 'rbenv::ruby_build'
node.app.rubies.each do |rb|
rbenv_ruby(rb)
rbenv_gem('bundler') { ruby_version rb }
end
The text was updated successfully, but these errors were encountered:
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.
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):The text was updated successfully, but these errors were encountered: