Publish Your Websites via Huawei Cloud Hosting Service

Introduction

Uğur ÇALIK
Huawei Developers
5 min readJun 11, 2021

--

In this article we will learn how to use Cloud Hosting Service to publish our websites.

Cloud Hosting Service

Why we should use the Cloud Hosting Service?

HUAWEI AppGallery Connect provides the serverless Cloud Hosting service that gives your users secure, rapid access to hosted web apps and static web pages.Cloud Hosting makes web page deployment easier. You can focus on the UI interaction, UI layout design, and service logic, and do not need to pay attention to security configurations (such as domain name application and certificate management) and page distribution. In this way, you can build a highly secure and fast-accessed web page.

What are the use cases?

You can use Cloud Hosting to host the following types of pages:

Personal blog: Users can upload interesting life events and share reading experience to showcase themselves.

Team space: Members from the same team can share business software, view documents, and share working experience in the team space, improving work efficiency and enhancing team cohesion.

Creative sharing: Users can share interesting content via an electronic leaflet with their friends online more efficiently.

Restrictions

  • Hosting package size ≤ 400 MB
  • Hosting package size should be .zip format
  • Maximum storage capacity of a project 10GB
  • Maximum number of sites for a project 36
  • Maximum number of versions for a project 100

Pricing

Cloud Hosting is a resource-consuming service and will be charged based on the hosting capacity and network usage in the future. Currently, Cloud Hosting is in beta testing and free of charge. We will email you a notice about pricing policies one month in advance of formal charging.

How we should create the Website?

Before using Cloud Hosting to host your website, you need to develop your website and package your website files into a hosting package.

Your website files must meet the following requirements:

  • File type: Your website file types must be supported by the browser.
  • Access entry: The index.html file in the root directory of the hosting package is used as the default home page of your website.
  • Hosting package format: The hosting package must be in ZIP format.

The following is an example of the directory structure of the hosting package.

Hosting Package

How to apply for the Cloud Hosting Service?

Firstly to use Cloud Hosting Service you should have a project in AppGallery Connect. If you don’t have a prroject, you can click the link and create a project.

To use this service you should send an email to agconnect@huawei.com for application.Email title: [Cloud Hosting]-[Company name]-[Developer account ID]-[Project ID]. For details about how to query the developer account ID and project ID, please refer to Querying the Developer Account ID and Project ID.

Huawei operations personnel will reply to you within 1 to 3 working days.

How to enable the Cloud Hosting Service?

  1. Sign in to AppGallery Connect and click My projects.
  2. Click your project card and select the app for which you want to enable Cloud Hosting from the app drop-down list on the top.
  3. Go to Build > Cloud Hosting. and subbmit the Service Agreement.

4. Click Enable now in the upper right corner.

Cloud Hosting Enable

How to manage the Website?

  1. After Cloud Hosting is enabled, click the New site button on the Site Management page.
Site Create

2. Enter the site name and description, and click OK. The site name can contain only digits, letters, and hyphens (-).

NOTE

The domain name suffix of each site is as follows:

Singapore: *.dra.agchosting.link

Germany: *.dre.agchosting.link

Russia: *.drru.agchosting.link

3. After a site is created, it will be displayed on the Site management page in Released state.

How to delete the Website?

To delete a created site, click Delete in the Operation column, enter the site name for confirmation, and click OK.

NOTICE

Only sites outside China support site deletion.

When a site is deleted, all versions under the site are deleted and cannot be restored. Exercise caution when performing this operation.

How to manage the versions?

  1. On the Site management page, click Manage version in the Operation column of the site. The Manage version page is displayed.

2. Click New version. In the dialog box that is displayed, click Browse, select the static web page package to be uploaded, click Upload, and enter the description. Click OK.

After a version is created, it is displayed on the site version list and is in Releasing state.

3. Wait for 1 to 2 minutes and click Refresh. If the version status changes to Released, the version is successfully released.

NOTICE

If an earlier version has been released, after the new version is released, the earlier version will be automatically removed.

How to Access our Website?

After a site version is released, you can click the site domain name to access the hosted static website.

The WebSite

Conclusion

We have released our website via Cloud Hosting Service.We did not need to pay attention to security configurations (such as domain name application and certificate management) and page distribution. We have only focused on the UI interaction, UI layout design, and service logic.In this way, we have built a highly secure and fast-accessed web page.

Thanks for reading …

Reference

Cloud Hosting Service

--

--