Moving to another server
Export the database and files on the old server and import them on the new one.
What the export contains
- The database and every file from storage.
- The list of environment variable names, without values.
manifest.jsonwith the schema version and a fingerprint ofAPP_ENCRYPTION_KEY(a sha256 hash, not the key).
On the old server
cd deploy
mkdir -p exports
docker compose run --rm --no-deps -v "$PWD/exports:/exports" --user "$(id -u):$(id -g)" \
migrate node scripts/export-instance.mjs --out /exportsThe result is exports/loomark-export-<time>.tar.gz.
On the new server
- Step 1Install Docker and copy the
deploy/folder, the old.envand the archive. - Step 2If the domain changes, correct
DOMAINandNEXT_PUBLIC_SITE_URLin.env. - Step 3Start the database and storage, run the import, then start everything (commands below).
cd deploy
cp <old .env> .env
docker compose up -d postgres minio
docker compose run --rm --no-deps -v "$PWD/exports:/exports" \
migrate node scripts/import-instance.mjs /exports/loomark-export-<time>.tar.gz
docker compose up -d- The import restores only into an empty database;
--wipeclears a non-empty one and cannot be undone. - It checks
APP_ENCRYPTION_KEYagainst the original;--force-keycontinues without a match. - Then it applies this image’s migrations and uploads the files.
License after the move
The license is bound to the installation. On a new server with the same installation ID the key stays valid. Agree a change of domain with us in advance.