Github Pages Official Website
Github Pages Official Website

What is Github Pages?

Github Pages is a function provided by GitHub for hosting static sites. Submit static sites to Github’s username.github.io code repository, and Github will help you host the site with the same name as the access address.

Comparison Chart Before and After Speed Increase

Left image: The speed test result of the site deployed on Github Pages; the right image is Speed ​​test results after speeding up. The color represents the feedback time of the site, green represents fast, and the closer to red, it represents extremely slow or even inaccessible.
Left image: The speed test result of the site deployed on Github Pages; the right image is Speed ​​test results after speeding up. The color represents the feedback time of the site, green represents fast, and the closer to red, it represents extremely slow or even inaccessible.

Left image: The speed test result of the site deployed on Github Pages; the right image is Speed ​​test results after speeding up. The color represents the feedback time of the site, green represents fast, and the closer to red, it represents extremely slow or even inaccessible.

You can see that the access speed of the site deployed on Github Pages in the country is very unsatisfactory (left picture), and most areas are very slow to access (orange).

After speeding up, the result has reached a usable level (the dark green provinces on the right)

Source Code of the Test Project

We chose a Hexo Blog as the test object. The default template was used, and no additional changes were made.

How to Improve Github Pages’s Access Speed in China?

Github pages does not support the function of online construction (packaging). You can store static web pages on the storage space of domestic native cloud service providers after packaging locally, such as AWS China S3 or Aliyun’s OSS to ensure the access speed of the site.

The disadvantages of deploying on the native cloud are very obvious: there are more initial configurations, if you want to make continuous deployment (Git push automatic packaging and deployment), you need more configuration.

If you want a hassle free solution as simple as Github Pages and supports online packaging in China, you can host your site in 21YunBox.

Process of hosting static site in 21YunBox

1. Register as a 21YunBox member

2. Authorize 21YunBox to access the code repository you want to deploy

Sample image: Select the code repository to be deployed in 21YunBox
Sample image: Select the code repository to be deployed in 21YunBox

3. Configure Build (Package) Command and Release Directory

Sample image: Configure Hexo build (package) command and release directory
Sample image: Configure Hexo build (package) command and release directory

4. Click “Deploy Now”

In moments, your site is packaged and deployed online.

You can access your project at app_id.21yunbox.com (app_id is created and defined).

If you are not sure how to set up, please watch the step by step example video below:

How to deploy Hexo to the server operation video

What else can the 21YunBox deploy?

Like a back-end application framework Python Django or PHP Laravel This is notoriously complicated to deploy. 21YunBox also allows you to complete the package and go online to generate a unique second-level domain name in 3 or 4 minutes.

What about deploying a database in China? Yes, we can also simplify this process for you with a one-click to build database solution. Check out these PostgreSQL or MySQL examples (with videos).

What else? Want to know more? You can check Help Document

Why Choose 21YunBox?

21YunBox specializes in helping foreign businesses to host their websites in China. We deliver everything you and your team needs to build, run, and scale websites and apps in China.


Talk to an Expert

Create Professional Solutions for Your Industry and Business

or