Difference between revisions of "Updating the Webui (nodejs)"
(Created page with "The most current web user interface updates via <tt>git</tt>. Successfully updating the web-ui requires you to log in as '''root''', via your server console or a PuTTY|SSH (...")
Latest revision as of 20:01, 12 August 2015
The most current web user interface updates via git. Successfully updating the web-ui requires you to log in as root, via your server console or a SSH (PuTTy) session.
Following these commands will update the webui to the most recent version and maintain changes (if any) you have made to the source. This is the preferred method, even if you do not edit code. This can be done at any time (whether the service is up or not) and even on a schedule. After updating the scripts, be sure to log out of the web-ui and back in.
git fetch git merge origin/masternpm install --all
If updating the scripts returns an error or otherwise fails to solve a web-ui problem, you can try resetting the scripts. This will discard any and all local changes to the source and ensure permissions are set properly.
git fetch git reset --hard origin/master npm install --allchmod +x service.js mineos_console.js generate-sslcert.sh webui.js
The git reset command will let you know what commit the web-ui will be using:
<syntaxhighlight lang="bash"> root@core games/minecraft# git reset --hard origin/master HEAD is now at 1ef67f8 added 'delete server' functionality to server </syntaxhighlight>