Sometimes you’ll do an upgrade and you’ll see mismatched versions between the game and the web portal (on the bottom of all portal pages):
AresMUSH game v1.12.0, portal v1.11.0
The web portal and game engine always have to have the major and minor version (the first two numbers). If they don’t, you will get unpredictable errors. The third number, the patch version, is allowed to differ.
There are several potential causes for the version mismatch. The sections below shows steps to rule out each potential cause.
Sometimes your browser is stubbornly holding onto the old Javascript and needs a kick.
Sometimes the web portal doesn’t deploy.
website/deploy command from the clint bin/deploy from the ares-webportal directory on the server shell. (Don’t use the web portal update button.)A successful deploy ends with a list like the following:
Built project successfully. Stored in "dist/".
File sizes:
- dist/assets/ares-webportal-5d9f5985e1460779a552cf47f222971d.css: 143.77 KB (23.25 KB gzipped)
- dist/assets/ares-webportal-7d7c53430414e59c856937e57e284827.js: 894.15 KB (98.25 KB gzipped)
etc.
Sometimes folks forget to update their custom GitHub fork before updating the game.
aresmush/version.txt is the correct version.ares-webportal/public/scripts/aresweb-version.js.Sometimes the server doesn’t get the right files from GitHub.
cat aresmush/version.txt
cat ares-webportal/public/scripts/aresweb_version.js
cd ares-webportal
git status
git pull
This will tell you if you missed any weird errors when the website was published.
A successful website deploy will end with a list of files, like this: