L'installation de production sur 3.4.0.beta2-dev échoue à mettre à jour vers 3.4.0.beta2

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