I have installed RVM (ruby version manager) on a production server (with CentOS).
I have installed it as a user (e.g. foobar) and not as root. (Is this a bad idea?)
Now everything works correctly except that whenever I ssh to my server (e.g. ssh foobar@example.com
) RVM doesn't get loaded and I always have to run a login shell (e.g. bash --login
) to start using the correct version of ruby and gems.
.bash_profile
and .bashrc
for user foobar seems to be properly configured.
I would like to know if this is my fault (a bad configuration), or everyone using RVM is facing this issue.