In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
The knowledge points of this article "how to activate Mini Program Cloud Development capabilities" are not quite understood by most people, so the editor summarizes the following contents for you. The contents are detailed, the steps are clear, and they can be used for reference. I hope you can get something after reading this article. Let's take a look at this "Mini Program Cloud development capabilities how to activate the application" article.
1 my first cloud development Mini Program
Select an empty directory for the new project, enter AppID (AppID is required to use cloud development capabilities), check "Cloud Development QuickStart Project", and click create to get a sample Mini Program that shows the basic capabilities of cloud development. The following differences between this Mini Program and ordinary QuickStart Mini Program should be noted:
There is no visitor mode, and the test number cannot be used.
The field cloudfunctionRoot has been added to project.config.json to specify the directory where cloud functions are stored.
The directory specified by cloudfunctionRoot has a special icon
Cloud development capabilities are supported from the basic library 2.2.3.
2 compatibility issues
Note that cloud development capabilities are supported from the base library 2.2.3. Currently, the base libraries of 2.2.3 or above do not completely cover all users (currently about 90%). If you want to enable the uploaded code to cover all users, please do the following special processing:
Add the field "cloud" to app.json / game.json: true
The specified cloud capability can be used in all basic libraries, and if the cloud capability is updated, it will not be automatically upgraded with the upgrade of the basic library. It needs to be re-uploaded after the subsequent version is released. For example, after the release of 2.2.4, you need to upload it again to update the cloud capability to the 2.2.4 version.
3 activate cloud development
After creating the first cloud development Mini Program, you need to activate cloud development before using cloud development capabilities. On the left side of the developer tools toolbar, click the "Cloud Development" button to activate cloud development. After cloud development is launched, a set of cloud development environment is automatically obtained. Each environment is isolated from each other, and each environment contains independent database instances, storage space, cloud function configuration and other resources. Each environment has a unique environment ID identity, and the initially created environment automatically becomes the default environment.
4 Cloud Development console
The Cloud Development console is the place to manage cloud development resources. The console provides the following capabilities:
Overview: view cloud development infrastructure usage data
User management: viewing Mini Program user information
Database: manage database, view, add, update, find, delete data, manage indexes, manage database access, etc.
Storage management: viewing and managing storage SPAC
Cloud functions: view the list, configuration, logs and monitoring of cloud functions
Statistical analysis: view specific usage statistics of cloud development resources
5 Resources and environment
An environment corresponds to a set of independent cloud development resources, including databases, storage space, cloud functions, and so on. Each environment is independent of each other. Users have a maximum of two environments by default after activating cloud development. In the actual development, it is recommended that each formal environment should be equipped with a test environment, and all functions should be tested in the test environment before going to the formal environment. Taking the two environments that can be created initially as an example, it is recommended that one be created as a test test environment and the other as a formal release environment.
The above is about the article "how to activate the application for Mini Program cloud development capabilities". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.