Postmodern
Postmodern
@juanitogan `/usr/local/bin` typically should precede `/usr/bin` in `$PATH`. You can also specify the absolute path to `/opt/rubies/`. Also, you probably should avoid running apps under root ;)
@juanitogan fascinating! Did you confirm passenger actually started `rackup` in a shell with chruby loaded? If this is the case, create a Wiki page for Passenger ASAP and I'll link...
Double checking the [Passenger Documentation](http://www.modrails.com/documentation/Users guide Apache.html), you should also enable [PassengerLoadShellEnvvars](http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerLoadShellEnvvars) to ensure the application is loaded via `bash -l -c ...`, otherwise it uses this `PassengerHelperAgent` which I...
If chruby is configured in `~/.bash_profile`, you should enable [passenger_load_shell_envvars](http://www.modrails.com/documentation/Users%20guide%20Nginx.html#PassengerLoadShellEnvvars) so that `bash -l -c` is used to start the app.
@sandstrom one issue could be whether passenger `cd`s into the directory before spawning the sub-shell, or within the sub-shell. chruby_auto only executes after the command, so `bash -l -c 'rackup'`...
If that is the problem, I suspect explicitly calling `chruby_auto` after loading it would fix this.
@lowski I am guessing that you installed bundler as a normal user via chruby, so it should be installed in `~/.gem/...`. Try installing bundler as root via chruby, so the...
@lowski as stated in the [Features](https://github.com/postmodern/chruby#features), chruby does not set `GEM_HOME` when running as root, and merely let's rubygems use it's default gem dir (which is typically inside the ruby...
@lowski nope, it should not. RubyGem's default gem directory is always somewhere inside of the ruby installation. You should consider installing ruby into `/opt/rubies` so it's globally accessible. Also, you...
@jlecour I believe you have to specify which user you want passenger to run the app as. Also, specifying `passenger_ruby` causes passenger to not use the ruby available in `$PATH`.