Github Pages Access is too slow? By Netlify free acceleration

github pages vs netlify

A static site hosting service Github Github Pages to provide it directly from Github repository for publishing static files, and then provide a github.iosecond-level domain for the user to access, customize support binding domain, open support for HTTPS, HTTPS will automatically open while automatically renewed application for a certificate before the certificate expires, all are free , and extremely simple to use, simply submit your static files to Github, you can then open the Pages service, my blog will hosted on Github Pages

Github Pages free and stable service so that I can focus on content without having to consider the issue of cost and maintenance is very convenient critically acclaimed, but its biggest problem is that the domestic access speed is very slow, how fast and simple low-cost solution to this the problem? Here are a service: Netlify

Netlify is a provider of static web hosting integrated platform that supports automatic pulling the code from Github and other warehouse and build a static website to publish, which also supports custom domain name, SSL certificate automatically apply for other functions, more important is automatically enabled CDN accelerate domestic access speed is much faster

The following is a comparison chart Github Pages are Netlify two platforms requested speed and the same item

From the test results can be seen on the map around the country Netlify access speed can win, then details how to speed up next to you by Netlify Github Pages

Netlify

Open Netlify official website , click on the upper right corner of the Sign upregistered account, where the association recommended Github account

After entering the Netlify associated certification back page, as shown below, clickNew site from Git

Select the website source code repository hosting type, support Github, Gitlab and Bitbucket, selectGitHub

Then enter the certificate authority Github page, click onAuthorize Netlify by Netlify

Click Only select repositoriesto select the authorized Github repository, of course, can choose to directly authorize all warehouse, the authorization can be changed in the settings

Authorize complete back Netlify background page, just select our Github repository authorized to continue

Select the user and branch deployment, if some need to compile the project, also supports the definition of the compiler command and the final release of the catalog, a purely static site, then do not need to fill in, just click Deploy siteto complete deployment

After the deployment is complete, Netlify will automatically generate a random secondary domain name xxx.netlify.com, we can modify the custom of two domain names, clickSite Settings

General -> click the Details under the Site Change site name, may be a custom name for the site settings, the secondary domain name will be changed accordingly

If you want to bind your own domain name, we need to resolve in the new domain management system, the domain name to point to your CNAME netlify secondary domain name to Ali cloud, for example as follows

Then enter Netlify management background, Domain management -> Domains, click Add domain alias, fill in your custom domain name

DNS will be bound to see the new domain name change to green after the entry into force, and to set the primary domain name

Finally, turn on HTTPS support for custom domain name, Domain management -> HTTPS, click Verify DNS configurationthe domain name will automatically request a certificate validated by

So far Netlify binding complete with Github, you can access the site through a custom domain name, and after each time you submit the code to Github, it will automatically publish to Netlify, no additional operation is very convenient

other instructions

If you are a primary domain name to bind Netlify, and must use an A record, you can direct your Netlify ping the secondary domain name's IP address will be able to get as domain name resolution, for example, my domain name is ops-coffee.netlify.comthe address obtained after a ping 157.230.35.153, multi ping times can get a different address, we are bound to the domain name in order to prevent a single node failure

There are also similar to Github pages such services, such as pages and Coding Gitee service provided, there must be a lot of advantages in terms of speed, but poor stability, and could face layers of review issues such as domain name registration

If your domain name for the record, the project is purely static, then you can also consider direct hosted on some domestic object storage services, such as seven cattle cloud, Tencent cloud and so on, and then open the CDN to accelerate, with good results, and most of them have free traffic can be used

Github Pages and Netlify this free program and can be highly customizable, to meet our individual needs, eliminating maintenance costs and funding pressures, allowing the site to live longer, allowing us to focus on continuing the outputting content, a virtuous cycle, quickly try

Scan code number to see more public attention and practical articles

Finally, if for my blog implement programs of interest, this article has a description and source code: use Django hand write a static page generation tool , if hard to access articles written by no one, perhaps this can help you: Google search to maximum inlet, simple personal blog to talk about the next SEO

Guess you like

Origin www.cnblogs.com/37Y37/p/12551839.html