component environment variables
Component environment variable management
The component supports custom environment variables. Users can add the environment variables in the form of Key | Value, and the environment variables will be injected into the component.
add environment variable
Components -> Environment Variables -> Add Variables.
- variable name:key
- variable value:value
- Description:variable description, will not be injected into the component
delete environment variable
components -> environment variables -> delete variables
danger
note:variable is not recoverable after deletion
Modify environment variables
Components -> Environment Variables -> Modification
Environment variables only support modifying variable value
transfer environment variables
Convert the environment variable to a dependent environment variable. When the component is dependent, this environment variable will be injected into the dependent component.
After the transfer, the environment variables will still take effect in the current component.
danger
The operations of the above environment variables need to be updated/restarted to take effect.
Component Profile Management
Configuration file mounting means that we fill in the file content into Rainbond, and Rainbond is mounted to the component in the form of a file.
Add configuration file
Go to Components -> Environment Configuration -> Configuration File Settings -> Add Configuration File
Profile info:
- config file name:custom (not file name)
- The configuration file mount path:needs to fill in the absolute path including the file name, such as:/data/test.conf
- Permissions for files with permissions:, e.g.:777
- Configuration file content:custom
Edit configuration file
Go to Components -> Environment Configuration -> Configuration File Settings -> Edit Configuration File
Configuration file mounting path
,Permissions
,Configuration file content
can be modified, but the configuration file name cannot be modified.
Rainbond will check whether the content of the configuration file has been modified. If it is not modified, it will not be saved.
delete profile
Go to Components -> Environment Configuration -> Configuration File Settings -> Delete Configuration File
Note that:will not be recovered after deletion
danger
The operations of the above configuration files need to be updated/restarted to take effect.
shared configuration file
The shared configuration file is to mount the configuration files of other components to the current component, which is suitable for scenarios where the configuration files of multiple components are consistent.
Mount shared configuration file
Go to Components -> Environment Configuration -> Shared Configuration File Settings -> Mount Shared Configuration File
Fill in the local mount path:
- Check the components that need to mount the configuration file
- Fill in the local mount configuration file path:, you need to write the absolute path including the file name
Unmount shared configuration file
Go to Components -> Environment Configuration -> Shared Configuration File Settings -> Unmount
danger
The above operations of sharing configuration files need to be updated/restarted to take effect.