Hosting and Deployment

Hugo Deploy

Use the hugo deploy command to deploy your site directly to a Google Cloud Storage bucket, an AWS S3 bucket, or an Azure Storage container This feature requires the Hugo extended/deploy edition. See the [installation] section for details. Assumptions # You have completed the [Quick Start] or have a Hugo website you are ready to deploy and share with the world. You have an account with the service provider ( Google Cloud, AWS, or Azure) that you want to deploy to. ...

Deploy with Rclone

Assumptions # A web host running a web server. This could be a shared hosting environment or a VPS. Access to your web host with any of the protocols supported by rclone, such as SFTP. A functional static website built with Hugo Deploying from an Rclone compatible operating system You have installed Rclone. NB: You can remove --interactive in the commands below once you are comfortable with rclone, if you wish. ...

Deploy with Rsync

Assumptions # A web host running a web server. This could be a shared hosting environment or a VPS. Access to your web host with SSH A functional static website built with Hugo The spoiler is that you can deploy your entire website with a command that looks like the following: hugo && rsync -avz --delete public/ www-data@ftp.topologix.fr:~/www/ As you will see, we’ll put this command in a shell script file, which makes building and deployment as easy as executing . ...

Host on 21YunBox

21YunBox is a fully-managed cloud platform dedicated to make web deployment easy within the Chinese Great Firewall where you can host static sites, backend APIs, databases, cron jobs, and all your other apps in one place. It provides blazing fast Chinese CDN, continuous deployment, one-click HTTPS and other services like managed databases and backend web services, providing an avenue to launch web projects in China. 21YunBox includes the following features: ...

Host on AWS Amplify

Prerequisites # Please complete the following tasks before continuing: [Create an AWS account] [Install Git] [Create a Hugo site] and test it locally with hugo server Commit the changes to your local repository Push the local repository to your [GitHub], [GitLab], or [Bitbucket] account Procedure # This procedure will enable continuous deployment from a GitHub repository. The procedure is essentially the same if you are using GitLab or Bitbucket. ...

Host on Azure Static Web Apps

You can create and deploy a Hugo web application to Azure Static Web Apps. The final result is a new Azure Static Web App with associated GitHub Actions that give you control over how the app is built and published. You’ll learn how to create a Hugo app, set up an Azure Static Web App and deploy the Hugo app to Azure. Here’s the tutorial on how to Publish a Hugo site to Azure Static Web Apps. ...

Host on Firebase

Assumptions # You have an account with [Firebase][signup]. (If you don’t, you can sign up for free using your Google account.) You have completed the [Quick Start] or have a completed Hugo website ready for deployment. Initial setup # Go to the [Firebase console][console] and create a new project (unless you already have a project). You will need to globally install firebase-tools (node.js): npm install -g firebase-tools Log in to Firebase (setup on your local machine) using firebase login, which opens a browser where you can select your account. ...

Host on GitLab Pages

Assumptions # Working familiarity with Git for version control Completion of the Hugo [Quick Start] A GitLab account A Hugo website on your local machine that you are ready to publish BaseURL # The baseURL in your site configuration must reflect the full URL of your GitLab pages repository if you are using the default GitLab Pages URL (e.g., https://<YourUsername>.gitlab.io/<your-hugo-site>/) and not a custom domain. Configure GitLab CI/CD # Define your CI/CD jobs by creating a . ...

Host on KeyCDN

KeyCDN provides a multitude of features to help accelerate and secure your Hugo site globally including Brotli compression, Let’s Encrypt support, Origin Shield, and more. Assumptions # You already have a Hugo page configured You have a GitLab account You have a KeyCDN account Create a KeyCDN Pull Zone # The first step will be to log in to your KeyCDN account and create a new zone. Name this whatever you like and select the Pull Zone option. ...