A brief list of static web hosting platforms.

preface

Recently Hexo and GitHub Pages were used to build a personal static home page, and some problems were found. Therefore, a horizontal comparison was made to understand the specific similarities and differences. There are many platforms that are not hands-on, so the notes are for the record only, and the details need to be mined and updated. In the meantime, if you have other recommended solutions, please share them in the comments and keep updating 🙂

GitHub PagesDesigned to be directly derived fromGitHubThe individual, organization, or project home page of the warehouse.

  • Provides static web hosting services
  • Server-side code, such as PHP, Ruby, or Python, is not supported
  • GitHub Pages provides domain names that support HTTPS access
  • Custom domain names can be configured, but SSL cannot be configured for custom domain names.HTTPS is not supported for GitHub Pages using custom domains.Refer toGithub Help, all GitHub Pages sites (including those correctly configured with custom domains) already support HTTPS and HTTPS enforcement.
  • The response is still a bit slow
  • The website repository is less than1GB, bandwidth limit100 gb/month, build constraints10 times per hour

Netlify

  • Pages that do not support background logical computing power
  • The general idea for deploying Hexo is to render MD as a static website via the CLI (command line interface), deploy it to the Git platform via Git, and then use Netlify’s Webhook to automatically grab the deployment
  • It has advantages such as global CDN, continuous deployment, and one-click HTTPS
  • It’s cool to be able to bring dynamic functionality through client-side JS and reusable apis.
  • The Hugo Static Site Generator can be used in conjunction with the Hetlify website automation system to address the lack of HTTPS support and slow response of Github Pages

Coding PagesProvided by Domestic Coding

  • Speed friendly access
  • Hexo can be deployed on both GitHub Pages and Coding Pages at the same time, and then resolved by domain name DNS. GitHub Pages can be accessed abroad, and Coding Pages can be accessed domestically to optimize access speed
  • Multiple custom domain names can be bound for free
  • Custom domain name can enjoy free SSL certificate, the whole site supports HTTPS protocol
  • Updating the code base automatically deploys. Server stability, Hong Kong server foreign support is also friendly
  • New Dynamic page deployment
  • One minor problem is that if the official “Hosted by Coding Pages” link is not placed on the homepage of the website, a “Hosted by Coding Pages” page will be added in the middle.

GitLab PagesIs provided by GitLab to create web sites for GitLab projects, individuals and groups.

  • You can use any static site generator such as Jekyll, Middleman, Hexo, Hugo, Pelican, etc
  • You can configure the custom domain name HTTPS and upload the certificate

Now

  • Not only supports static web hosting, but also supports JavaScript(Node.js) or Docker-driven web sites,
  • You can use the CLI or link to a Git repository
  • You can customize domain names and enable HTTPS
  • Transport is based on HTTP/2
  • You do not need to install Git and other source control tools. You do not need keys or tokens
  • Real-time deployment.

Firebase Hosting

  • Only the CLI
  • You can customize domain names and enable HTTPS
  • Redirects and overrides are supported.

Bitbucket Cloud

  • Access must be through HTTPS
  • The domain name cannot be customized
  • Static site code for all projects can only be placed in a dedicated site repository.
  • The page is cached for 15 minutes, meaning changes are not immediately visible.

aerobatic

  • CLI upload code is supported
  • Custom domain names are charged.

surge

  • Only supports the CLI
  • You can customize the domain name. You need to charge for enabling SSL and upload the certificate by yourself

Continuously updated…