How to update ?

Backup your config files

Before starting an update of BorgWarehouse, please make sure that you have a safe copy of the following configuration files :

  • .env.local
  • config/users.json
  • config/repo.json

Stop the service

Firstly, stop the application BorgWarehouse.

If you have installed a service as advised in the Debian deployment doc, run the command :

systemctl stop borgwarehouse

Fetch the new version

With the borgwarehouse user, go to the folder app and launch a git pull.

su borgwarehouse
cd borgwarehouse
git pull

Install dependancies

npm ci

Build the application

npm run build

Restart application

BorgWarehouse is up-to-date 🥳 ! You can now restart your service, or run a npm run start for a local test.