Sorry for the delayed response, I have been far away from a computer for some much needed time in the woods.
To answer the last question, I don’t know what keeps the variables from being reset.
However, before you unset them, make sure you don’t have other users/projects dependent on finding the ruby path.
Because, I would assume unless your using somethin like RVM to manage your ruby instances/versions, that removing the system variable will cause issues with other ruby projects on your server.
How I unset them:
I ssh’d into my VPS,
cd’d into my ruby project and I get the following:
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /home/domain/projects/rubyproject/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.
I think this is because it is RVM managed, but I don’t know.
then I just typed:
Then you can set to your custom path:
I am not sure you will need to update your $PATH var.
You may just be able to set RUBYLIB in a similar fashion.
If you are using RVM:
are both useful
This returns a list of items, that can be tuned, configured, or ignored.
However, in this case, I no longer get errors about incorrect ruby version and gems not being found.