Update
Learn how to upgrade the BanManager WebUI with just a couple of steps.
First, make a full backup
Whenever doing an update it’s a good idea to take a full backup of your site first. If anything goes wrong, you’ll still have all your data.
Update to the latest version
This guide assumes your BanManager-WebUI installation is located in /home/banmanager/BanManager-WebUI, please replace where applicable.
Run the following commands in order:
cd /home/banmanager/BanManager-WebUIgit rev-parse HEADto make a note of your current version (in case you need to rollback)git pullto fetch the latest versionnpm ci --productionto install the latest dependenciesnpm run heroku-postbuildto build the latest pages and run database migrations- Restart the process - dependant on your setup
Troubleshooting any problems
If something goes wrong, you can always revert to the previous version.
node bin/run undoto revert database migration changesgit checkout <commit>to checkout the source of a previous version, replace<commit>with the short hash noted fromgit rev-parse HEADcommand prior to updating, e.g.git checkout 56fe206npm ci --productionto install the old dependenciesnpm run buildto build the old pages- Restart the process - dependant on your setup
If you’re still having trouble, start by searching the BanManager Discord to see if your issue has come up before.