Skip to content

Updating Save2ERP ​

Files to keep ​

These files are specific to your installation and are not part of the delivered version:

FileContent
.envConfiguration of the server and systems, secrets included.
license.licLicense (or the file set by LICENSE_FILE).
data/License user register: without it, counting starts again from zero.
HTTPS certificateIn https mode: the files set by TLS_KEY_FILE and TLS_CERT_FILE.
Custom texts folderIf TRANSLATIONS_OVERRIDE_DIR is used.
logs/Optional, to keep the history.

With Docker ​

  1. Change the image version in docker-compose.yml.
  2. Run docker compose up -d.
  3. Check the logs (docker compose logs -f).

The configuration, the license and the user register are kept.

With the ZIP archive ​

  1. Stop the server or its service.

  2. Back up the files above, outside the application folder.

  3. Replace the application with the new version, then put the backed-up files back.

  4. Install the dependencies:

    bash
    npm ci --omit=dev
  5. Restart the server or its service.

After the update ​

  • Check .env: the release notes list the variables added or changed. In production, NODE_ENV=production.
  • Check the logs: the Licence : … line must show the expected license, followed by Server HTTPS started on port ….
  • If you receive a new manifest, replace it in the Microsoft 365 admin center (see Deploying in Microsoft 365).