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
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. Signup on 21YunBox
2. Authorize 21YunBox to access the code repository you want to deploy
3. Configure 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 is created and defined).
If you are not sure how to set up, please watch the step by step example video below:
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 else? Want to know more? You can check Help Document