Manually Adding an Application Environment Variable
This section describes how to manually add an environment variable for an application.
- Log in to ServiceStage.
- Choose Application Management.
- Click the target application. The Overview page is displayed.
- In the left navigation pane, click Environment Variables.
- Select a created environment from the drop-down list.
- Click Add Environment Variable and set Name and Variable/Variable Reference.
- Name: application environment variable name, which must be unique in the same application environment. Enter 1 to 64 characters. Start with a letter, underscore (_), or hyphen (-). Only use letters, digits, underscores (_), hyphens (-), and periods (.).
- Variable/Variable Reference: application environment variable value.
For example, if you set Name to User and Variable/Variable reference to admin, when the program code reads the User environment variable, admin is obtained. Or, you can start a subprocess or read a file as user admin. The actual execution effect depends on the code.
Exercise caution when inputting sensitive information in configuring environment variables, or encrypt sensitive information to avoid information leakage.
- Click Submit.
Figure 1 Manually adding an application environment variable
Follow-Up Operations
After the application environment variables are changed, you can:
- Make the changed application environment variables take effect for a specified component of the application by Upgrading a Single Component.
- Make the changed application environment variables take effect for multiple or all components of the application by Upgrading Components in Batches.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot