当前位置:网站首页>[AGC] build service 2 - cloud hosting example
[AGC] build service 2 - cloud hosting example
2022-07-16 09:15:00 【Huawei Developer Forum】
Preface : Last time I brought you AGC In application message service learning in the field . This time we will continue to deepen our study AGC Knowledge about . Before the article begins , Give the reader a brief introduction AGC, In case the first time readers don't understand . So-called AGC Namely AppGallery Connect For short , Create ideas for users' applications 、 Development 、 distribution 、 operating 、 Provide one-stop service in all links of operation , Put it in a more general way , It is to provide comprehensive services for users to operate applications on the shelf in Huawei application market .
All of the AGC Relevant knowledge is divided into two categories , One major category is related to on the shelf , This can refer to the link :https://developer.huawei.com/consumer/cn/doc/distribution/app/agc-help-overview-0000001100246618. It provides application testing 、 Application of release 、 Application management 、 Application maintenance and other application market related content . Another kind of help for developers Kit, This can refer to the link :https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-Guides/agc-introduction-0000001057492641. It provides things like cloud storage 、A/B test 、 Quality analysis 、 Huawei cloud, etc Kit, Provide additional help to developers , Assist developers to better complete the application on the shelf 、 Improve application quality 、 Increase user stickiness, etc .
because AGC There's too much of it , So every time we study, we try to talk about one of them , To be more specific . This time, let's learn the function of cloud hosting to build services . This function is a service that provides content hosting , Including website hosting and storage acceleration , Provide users with safe and fast content access . Cloud hosting services provide convenient and fast web application deployment capabilities , You just need to focus on interface interaction 、 Page style and business logic , No need to pay attention to domain name application 、 Certificate management and other security configurations , There is no need to pay attention to page distribution , You can build high security 、 Quick access to websites .
Related concepts of cloud hosting services :1、 Through the website hosting function , You can manage multiple sites under a project , Each site can use the domain name provided by the hosting service . meanwhile , Each site also supports multi version management .2、 Site : A site is a carrier for developers to host static web pages , Help developers manage and maintain all versions of web content .3、 edition : When a developer updates a managed static resource , Version management is carried out by distinguishing version numbers .4、 Through the storage acceleration function , The accelerated domain name can be configured for the storage bucket of cloud storage service , Provide cloud storage objects by accelerating domain names CDN Ability to speed up .
Typical scenarios of cloud hosting services , You can use cloud hosting services to host various types of pages , Including but not limited to the following scenarios :
Personal blog : You can upload interesting life stories 、 Share your reading experience , Build a platform to show yourself .
Team space : Members of the same work team can use team space , Shared office software 、 Check the documentation 、 Exchange work experience , So as to improve work efficiency , Further increase team cohesion .
Creative sharing : You can make interesting content into electronic leaflets , Easily share with your friends through online media , Improve the efficiency of information transmission , Ensure the timeliness of sharing .
This time, we will introduce the website management service of cloud hosting , Its implementation process is as shown in the figure .

Next, follow the steps of the author to complete a simple cloud hosting service . Because this is just for demonstration , So part of the content has been simplified .
1、 Develop web pages
1) Before using the website hosting function , You need to complete the web page development and package the web page file into a hosting package .
There are the following requirements for web documents :
1、 file type : File types supported by web browsers .
2、 Access portal : Included in the root directory of the managed package index.html File as the default site home page .
3、 Managed package format : The managed package must be packaged as “.zip” file , And cannot add a level of external directory .
The following is an example of the managed package directory structure :

2)Index.html Simply write a web page .

2、 Start the service
1) stay AGC Page selection build - Cloud hosting , Go to the cloud hosting page , Click on “ Open now ”.

2) Create overseas sites . Because the current domestic domain name application is more complex , The author uses an overseas site as a demonstration , Here we use the pan domain name to create a site . Click Service Management - Website hosting , Click to open , Enter site management . Select from the drop-down box “ Pan domain name ” after , Click on “ Create site ”.

3) Enter the site name and site description , Click on “ determine ”, Finish creating .

4) After the site is successfully created , The site name column will show the site , Site status is “ go online ”.

3、 version management
1) stay “ Site management ” page , Click on the site “ operation ” List “ version management ”, Enter the version management page .

2) Click on “ Create version ”, Click... After the version creation is completed in the pop-up window “ determine ”.

3) Click on “ Browse ”, Select the static web page package written before , Click on “ Upload ”, And fill in the description . choice “ Production release ”.

4、 Visit Site
After the version of the site is successfully launched , Click the site domain name to access the managed static page .


above , This time's content sharing , thank you !
Link to original :
For more technical articles , Welcome to visit https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh
边栏推荐
猜你喜欢

Detailed explanation and Simulation of string library function and memory operation library function

Detailed explanation of odoo search view (I)

gpu服务器注意事项

Audio and video learning (VI) -- PCM audio Basics

How to apply for PMP project management certification examination?

odoo action分析(action.client,action.act_window,action.server)

容错、熔断的使用与扩展

Uniapp applet and H5 compressed image upload

Kanban view of dtcloud qWeb practice

Anonymous pipeline principle and detailed explanation (very practical)
随机推荐
What is restful style? What is the difference from the traditional interview style?
如何洞曉深度學習中記憶與注意力機制?這份Deakin大學212頁博士論文給您做解答
dtcloud 的消息机制(二)
建立自己的网站(21)
031 Log4j日志框架
LeetCode 1584. Minimum cost of connecting all points
odoo manifest.py文件详解
曹洁 Spark编程Scala版本课后习题答案
PHP gets the names of all sub files in the directory (including cases, screenshots, and codes)
什么是Restful风格?与传统的访问风格有什么不同?
odoo多公司
strlen简介,和sizeof的区别
Odoo multi company
odoo cli介绍(一)
C language register skills (struct and union)
Security of odoo
Constraints of odoo
Introduction to odoo cli (1)
Message Mechanism of dtcloud (1)
odoo的约束