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
Below is the speed test results of a site deployed with GitHub Page in China.
Below is the speed test results of a site deployed with 21YunBox in China.
The color represents the feedback time of the website. Green represents faster, while red means extremely slow or even inaccessible.
As you can tell, the access speed of the website deployed on GitHub Pages in China is very unsatisfactory and most areas are very slow (orange).
After speeding up with 21YunBox, the result has reached a usable level.
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 good site speed.
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 a Static Site with 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
3. Configure 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 is a Cloud Service platform based out of Beijing. Our services enable your team to be more effective in leveraging the growing opportunity within China by hosting your sites at blazing speeds with an operational and maintenance free solution.
We offer an easy and budget friendly, end-to-end web platform deployment service for all applications from small teams to large enterprises.
Need assistance it obtaining your ICP? Let us know, we are happy to assist you in the process.
To learn about the differences between 21YunBox and these foreign (outside of China) cloud service platforms? You can refer to:
- 21YunBox vs Heroku
- 21YunBox vs Netlify
- 21YunBox vs Vercel
- 21YunBox vs Gatsby Cloud
- 21YunBox vs Github Pages
- 21YunBox vs Surge.sh
- Compare in terms of function and price: 21YunBox vs Heroku, Netlify, Vercel
This article's content originated here
For additional detail and future modifications, refer the original post.
Top comments (0)