Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
sudo best practice #127
obviously it's not working, because of the "sudo". it's better to install rbenv for sudo ? or did i miss sth. ?
i could do:
it finds foreman, but breaks with an error: "/usr/bin/env: ruby: No such file or directory"
the rbenv ruby is not set in my sudo path. after reading the ticket: #66 (comment) it should be added ?
i did not followed the guide on https://github.com/sstephenson/rbenv/wiki/Using-rbenv-in-production#wiki-method1 but i installed it for my deploy user. so it "should" be fine.
a workaround is to use:
which preserves the PATH variables of the "normal" user so it finds the rbenv gems and ruby.
but still wrong isn't it ?
referenced this issue
Jul 8, 2014
@henry74 Maybe somebody who solved this can help you, but we generally don't provide support for various usage of rbenv in combination with 3rd party software.
rbenv will always work when