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
- Log in to ServiceStage and choose Application Management > Application List.
- Click Create Application and set basic application information.
- Name: Enter an application name. This name cannot be changed after the application is created.
- Description: (Optional) Enter an application description.
- 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.
- Log in to ServiceStage and choose Application Management > Application List.
- Click an application. The Overview page is displayed.
- Click Environment Variables and select a created environment from the Environment drop-down list.
- 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.
- Click Submit.
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