Updating Save2ERP
Files to keep
These files are specific to your installation and are not part of the delivered version:
| File | Content |
|---|---|
.env | Configuration of the server and systems, secrets included. |
license.lic | License (or the file set by LICENSE_FILE). |
data/ | License user register: without it, counting starts again from zero. |
| HTTPS certificate | In https mode: the files set by TLS_KEY_FILE and TLS_CERT_FILE. |
| Custom texts folder | If TRANSLATIONS_OVERRIDE_DIR is used. |
logs/ | Optional, to keep the history. |
With Docker
- Change the image version in
docker-compose.yml. - Run
docker compose up -d. - Check the logs (
docker compose logs -f).
The configuration, the license and the user register are kept.
With the ZIP archive
Stop the server or its service.
Back up the files above, outside the application folder.
Replace the application with the new version, then put the backed-up files back.
Install the dependencies:
bashnpm ci --omit=devRestart 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 byServer HTTPS started on port …. - If you receive a new manifest, replace it in the Microsoft 365 admin center (see Deploying in Microsoft 365).