Configuration Files for Services
The configuration files for services are managed in the \config directory by default.
For environments with distributed services and multiple systems – development, test, production – the configuration files can be managed via Git.
The following steps are necessary:
-
Execute enaio_service-managerw.exe located in the \bin directory.
- Open the Startup tab.
- Customize the arguments area:
- Git address
-
Directory in which the Git repository is cloned locally.
This directory cannot be a temporary directory. - Technical user with password for Git access
- Branch for the configuration files
-
Optional: Update in seconds
Default = 0, update with every request
- Copy the configuration files to the Git branch.
- Restart enaio® service-manager.
|
--spring.profiles.active=sw,prod,native |
Delete the native profile |
|
--spring.cloud.config.server.git.uri=https://<git> --spring.cloud.config.server.git.basedir=file:<path_dir> --spring.cloud.config.server.git.username=user --spring.cloud.config.server.git.password=password --spring.cloud.config.server.git.defaultLabel=branch --spring.cloud.config.server.git.refreshRate=0 |
Attach new parameters: |
The servicewatcher-sw.yml, logback-spring.xml, and logback.xml configuration files must remain in the \config directory.
enaio® service-manager Will now use the configuration files in the Git branch.
Patches for Services
When services are updated, the configuration files are backed up from the \config directory and restored after the update.
Backup copies are saved in a backup<timestamp> directory with the extension bak.
If configuration files contain new parameters, the configuration files are also saved there and given the extension dist.
areas. Use the toolbar to show all hidden areas at once:
