DEV Community

Cover image for How to Deploy Hugo to China?
21CloudBox
21CloudBox

Posted on • Updated on • Originally published at 21cloudbox.com

How to Deploy Hugo to China?

What is Hugo?

Hugo is an open source static site generator (SSG) based on the Go language. It is extremely fast and can package a 20-page static blog in a few milliseconds. Entities such as 1Password Support and Let's Encrypt use Hugo to make their static sites.

21YunBox provides a very simple Hugo deployment method. You can deploy on the 21YunBox in the form of a static site.

How to Deploy Hugo in China?

  1. Register to become a 21YunBox member
  2. Fork Hugo Example
  3. Create with the following configuration
Environment Static Site
Build command hugo --gc --minify
Release Directory ./public

If you'd like a step by step example, please refer to the video below:
How to deploy Hugo to the server operation video

Why Choose 21YunBox?

21YunBox is a Cloud Service Platform based out of Beijing, China. Our services provides you with an easy and budget friendly, end-to-end web platform deployment service for all applications and stacks. No matter your need, we have a flexible solution to assist.

If needed, we also offer full support in obtaining your ICP license which allows you to legally host online content within Mainland China.

To learn about the differences between 21YunBox and these foreign (outside of China) cloud service platforms, please refer to:



This article's content originated here

For additional detail and future modifications, refer the original post.

Top comments (0)