Updated on 2023-06-25 GMT+08:00

Creating an Application

An application is a service system with functions and consists of one or more application components.

For example, the weather forecast is an application that contains the weather and forecast components. ServiceStage organizes multiple components by application, and supports quick cloning of applications in different environments.

ServiceStage allows a single user to create a maximum of 1000 applications.

Creating an Application

  1. Log in to ServiceStage and choose Application Management > Application List.
  2. Click Create Application and set basic application information.

    1. Name: Enter an application name. This name cannot be changed after the application is created.
    2. Description: (Optional) Enter an application description.

  3. Click OK.

Adding Environment Variables

An environment is a collection of compute, storage, and network resources used for deploying and running an application. ServiceStage combines basic resources (such as CCE clusters and ECSs) and optional resources (such as ELB instances and DCS instances) in the same VPC into an environment, such as a development environment, testing environment, pre-production environment, or production environment. The resources within an environment can be networked together. Managing resources and deploying services by environment simplifies O&M.

Environment variables are parameters set in the system or user applications. You can obtain the values of environment variables by calling APIs. During deployment, parameters are specified through environment variables instead of in the code, which makes the deployment flexible.

  1. Log in to ServiceStage and choose Application Management > Application List.
  2. Click an application. The Overview page is displayed.
  3. Click Environment Variables and select a created environment from the Environment drop-down list.
  4. Click Add Environment Variable and enter the values in Key and Value.

    Key indicates the name of the environment variable, and Value indicates the value of the environment variable. Click Submit.

    For example, set Key to User and Value to admin. That is, when the program code reads the User environment variable, admin is obtained. For example, you can start subprocesses as the admin user and read files as the admin user. The actual execution effect depends on the code.

  5. Click Submit.