On the Environment Details page of the Web App Service console, you can perform common operations on an environment. The operations include start, stop, restart, release, and delete. You can also create a configuration template, upgrade or downgrade a technology stack, and download a Wpfile. On the Environment Details page, you can view specific information, such as the environment version, status, technology stack, creator, public IP address, latest events, and resources.
The Environment Details page includes specific information, such as the package version, technology stack, creator, creation time, latest events, and resources.Package Version
The package version of an application that runs in an environment. You can click a package version to download the package for an environment.Status
The status of an environment. You can move the pointer over the dot next to the name of an environment to view the status of the environment. Available statuses include Initializing, Running, Starting, Restarting, Stopping, Stopped, Releasing, Released, Abnormal, and Locked.Tech Stack
The version of the operating system that runs in an environment, the name of the platform, and the version of the architecture.Public Address
The IP address that is accessible by clients over the Internet. If no Server Load Balancer (SLB) instance is bound with an environment, the IP address of an ECS instance is displayed in the field. If an SLB instance is bound with the environment, the IP address of the SLB instance is displayed in the field.Latest Events
The latest events that occur in an environment. When you perform management tasks on an environment, Web App Service provides notifications that describe the latest events. These events allow you to track environment changes. You can click the icon to open the Events page that shows all the event history for an environment.Resources
On the Resources tab, resources that reside in an environment are displayed. On the Resources tab, available resources, such as VPCs and ECS instances, are listed.
- Click the ID of the ECS instance to go to the Instance Details page.
- Click the public IP address of the ECS instance to view the homepage of an application.
- Click Remote Connection to connect to the ECS instance.
- Click Switch to Subscription to open the ECS console and change the billing method of the ECS instance.
Deploy an environment
In the upper-right corner of the Overview page, click Deploy. In the Environment dialog box, select a new package to update the environment.
- Select a Package Source:
- Upload Local Application: Click Select File to upload a local package, and configure the Package Version again. In the Version Description field, enter an informative description to identify this operation.
- Select an earlier version.: Select a historical version to deploy the environment again.
- Click OK to complete the configurations.
Start and stop an environmentStop an environment
Ensure that an environment is in the Running state. Then, in the uper-right corner of the Overview page, click Stop to stop the environment. If an environment is stopped, no charge is incurred for applications that run in the environment. However, you are still charged for resources, such as ECS instances and SLB instances, that reside in the environment.Start an environment
Ensure that an environment is in the Stopped state. Then, in the upper-right corner of the Overview page, click Start to start the environment. All settings in the Applications section of the Configurations page are applied after an environment is started.
Restart an environment
In the upper-right corner of the Overview page for an environment, click Restart to restart the environment. A restart operation for an environment will not terminate or restart resources that reside in the environment. If errors occur when an environment responds to some unexpected requests, a restart operation may help you fix these errors and identify the causes of these errors.
Rebuild an environment
Ensure that an environment is in the Abnormal state. Then, in the upper-right corner of the Overview page, click Rebuild to rebuild the environment. All resources that reside in the environment are built again. This operation can help you recover the environment and identify the cause of an error.
Release an environment
In the upper-right corner of the Overview page for an environment, click Release to release all resources that reside in the environment and delete the environment for an application. No charges are incurred for released resources, such as ECS instances and SLB instances. You will only be charged a minimum amount for storage.
Delete an environment
In the upper-right corner of the Overview page for an environment, click Delete to delete the environment for the application. Web App Service will delete all ECS instances, SLB instances, and environment metadata that resides in the environment.
- Database products: RDS and Redis.
- Resources in Subscription billing method.
- Resources imported from elsewhere.
Create a configuration template
- In the upper-right corner of the Overview page for an environment, choose > Create Configuration Template.
- In the Create Configuration Template dialog box, enter the name and description of a configuration template, and click
Web App Service creates a new configuration template based on the environment. You can use the configuration template to create new deployment environments.
In the Create Configuration Template dialog box, click View the new configuration template to open the Templates page.
Upgrade or downgrade a technology stack
During the downgrade or upgrade process for a technology stack, Web App Service updates the technology stack of an environment. Then, the application that runs in the environment will be deployed again. Before you upgrade or downgrade a technology stack, we recommend that you evaluate the compatibility between the target technology stack version and the application.
- In the upper-right corner of the Overview page, choose > Upgrade/Downgrade Technology Stack.
- In the Upgrade/Downgrade Technology Stack dialog box, select the target Tech Stack Version, and click OK.
Download a Wpfile file
You can modify a Wpfile and use the apply command in the CLI tool to update or create an environment after you download a Wpfile.
- In the upper-right corner of the Overview page, choose > Download WP File.
- Open the Wpfile file on a localhost to view and change the configurations of the environment.