Creating an Application

An application is a service system with functions and consists of one or more components. For example, the weather forecast is an application that contains the weather and forecast components. ServiceStage now organizes multiple components by application, and supports dark launch and quick cloning of applications in different environments.

Creating an Application

  1. Log in to ServiceStage, choose Application Management > Application List, and click Create Application.
  2. Below Basic Information, configure basic application information.

    1. Name: Enter an application name. This name cannot be changed after the application is created.
    2. Enterprise Project: Set an enterprise project.

      Provides a cloud resource management mode, in which cloud resources and members are centrally managed by project.

      It is available after the enterprise center is enabled.

    3. Description: (Optional) Enter an application description.

  3. Click OK.

Adding Environment Variables

Environment is a collection of infrastructures, covering computing, storage, and networks, used for application deployment and running. ServiceStage combines basic resources (such as CCE and ECS) and optional resources (such as ELB, RDS, and DCS) in the same VPC into an environment, such as the development environment, testing environment, pre-production environment, and production environment. Networks in an environment can communicate with each other. You can manage resources and deploy services by environment, simplifying infrastructure 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, parameter configurations are specified through environment variables instead of in the code, which makes the deployment flexible.

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

    Key is the name of an environment variable and Value is the value of an environment. Click Submit.

    For example, set Key to User and Value to admin. That is, when the program code reads the environment variable User, the obtained value is admin. 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.