Updated on 2024-12-16 GMT+08:00

Manually Adding an Application Environment Variable

This section describes how to manually add an environment variable for an application.

Manually Adding an Application Environment Variable

  1. Log in to ServiceStage.
  2. Choose Application Management.
  3. Click the target application. The Overview page is displayed.
  1. In the left navigation pane, click Environment Variables.
  2. Select a created environment from the drop-down list.
  3. 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.

  4. Click Submit.

    Figure 1 Manually adding an application environment variable

Follow-Up Operations

After the application environment variables are changed, you can: