A test environment and production
Keep a test environment (UAT) and production the same: the same answers for install.sh, the same settings through an export, and separate secrets for each.
Many organisations first run a test environment (UAT, user acceptance testing) and then production. install.sh
and the settings export make it easy to keep them the same.
Use the same answers
Save the answers of the test installation (without secrets):
sudo ./install.sh --write-answers /root/bugsoft-uat.answers
Or use the file the installation saves itself: /etc/bugsoft/install.conf.
Then install production with the same answers, and only another address:
sudo ./install.sh --answers bugsoft-uat.answers --domain portal.klaverveld.example \ --admin-email emergency@klaverveld.example --entra-secret-file /root/entra-secret
An option on the command line wins over a value in the answers file. Secrets (passwords, the client secret, the licence) are never in an answers file: you give them to each server as a file.
Copy the settings
You copy the tiles, work areas, branding and audiences with an export:
- In the test environment: Admin › Settings › System › Import & export, or
sudo bugsoft config:export bugsoft-export.json. - In production, first run
sudo bugsoft config:import bugsoft-export.json --dry-runto see what will change. - Then run it again without
--dry-run.
Microsoft groups named in the export must exist in production, with the same name.
What is different per environment
- Its own app registration and client secret in Microsoft Entra ID, with the addresses of that environment.
- Its own keys (
APP_KEY,VAULT_KEKS): every installation makes them itself. Store them separately in your password vault. - Its own emergency account.
- The licence key: a test or UAT installation uses the same key as production.
Update the test environment first
Update to a new version in the test environment first (sudo bugsoft update …), check it, and only then update
production. See Update Bugsoft Portal.
Stuck? See Questions and problems or contact Bugsoft at ugurs156@gmail.com.