If you use a standard install, then the Ruby version should already be much newer than that.
Can you try running
cd /var/discourse
git status
If you use a standard install, then the Ruby version should already be much newer than that.
Can you try running
cd /var/discourse
git status