Only to correct the before e-mail
I just ran $ sudo chruby-exec ruby-2.1.2 -- gem install foreman
(as user) to install the gem inside chruby root user path and it is working now.
To install the gem inside chruby root path:
sudo chruby-exec ruby-2.1.2 -- gem install foreman
To use foreman like a root:
sudo chruby-exec ruby-2.1.2 -- foreman
On Tue, Jul 8, 2014 at 10:49 PM, Ricardo do Valle <ricardodovalle@gmail.com> wrote:
I just ran
$ sudo chruby-exec ruby-2.1.2 -- foreman
(as user) to install the gem inside chruby root user path and it is working now.--On Tue, Jul 8, 2014 at 2:06 PM, Ricardo do Valle <ricardodovalle@gmail.com> wrote:
Please, could you help me?
I am trying to use sudo with chruby and foreman, but without success.I tried:
$ sudo chruby-exec ruby-2.1.2 -- foreman $ foreman: command not found
But the same command with
rake
command works fine.$ sudo chruby-exec ruby-2.1.2 -- rake --version $ rake, version 10.1.0
Thank you very much.
Ricardo do Valle
Ricardo do Valle
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34-V6Y-iWKmowfPb_K07UnrH6cZRomtARuPbQS7-ZCHzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.