2c0125b52 Remove .Site.Author 2cf8841b3 Update partialCached.md (#1924) 385487191 Update data-templates.md (#1926) ce207e141 Remove redundant markdown and fix a few typos (#1936) 3687c2953 Make heading id linkable, take 2 45c79bea7 Make heading id linkable b22079344 Delete duplicates the lines 557-569 and 570-582. (#1934) 0a90dc122 Rework the taxonomy variables page (#1935) 7f8979c50 Update theme 26e682a3a Update multilingual.md d40e7693f Update postcss.md 375d75c01 Update postcss npm instructions (#1931) 63020094a Emphasize Window shell selection (#1930) 56824be2c Update configuration.md b7b8f16b3 Docu 'Theme components': minor fix (#1929) 09dc81a05 Remove Docker from BSD page (#1927) 205fea204 netlify: Hugo 0.108.0 6abe49c28 Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc' 12b59a4c5 docs: Add basic doc for wrapStandAloneImageWithinParagraph etc. ba07bd970 dartsass: Add sourceMapIncludeSources option git-subtree-dir: docs git-subtree-split: 2c0125b5290494d49334606c451446ebd9df3c21
3.6 KiB
title | linktitle | description | date | publishdate | categories | keywords | authors | menu | weight | sections_weight | draft | aliases | toc | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Host on Render | Host on Render | Host your Hugo site for free with Render's global CDN, fully-managed SSL and auto deploys from GitHub. | 2019-06-06 | 2019-06-06 |
|
|
|
|
10 | 10 | false | true |
Introduction
Render is a fully-managed cloud platform where you can host static sites, backend APIs, databases, cron jobs, and all your other apps in one place.
Static sites are completely free on Render and include the following:
- Continuous, automatic builds & deploys from GitHub and GitLab.
- Automatic SSL certificates through Let's Encrypt.
- Instant cache invalidation with a lightning fast, global CDN.
- Unlimited collaborators.
- Unlimited custom domains.
- Automatic Brotli compression for faster sites.
- Native HTTP/2 support.
- Pull Request Previews.
- Automatic HTTP → HTTPS redirects.
- Custom URL redirects and rewrites.
Assumptions
- You have an account with GitHub or GitLab.
- You have completed the Quick Start or have a Hugo website you are ready to deploy and share with the world.
- You have a Render account. You can sign up at https://render.com/register.
Deployment
You can set up a Hugo site on Render in two quick steps:
- Create a new Static Site on Render, and give Render permission to access your GitHub/Gitlab repo.
- Use the following values during creation:
Field | Value |
---|---|
Build Command | hugo --gc --minify (or your own build command) |
Publish Directory | public (or your own output directory) |
That's it! Your site will be live on your Render URL (which looks like yoursite.onrender.com
) as soon as the build is done.
Continuous Deploys
Now that Render is connected to your repo, it will automatically build and publish your site any time you push to your GitHub/Gitlab.
You can choose to disable auto deploys under the Settings section for your site and deploy it manually from the Render dashboard.
CDN and Cache Invalidation
Render hosts your site on a global, lightning fast CDN which ensures the fastest possible download times for all your users across the globe.
Every deploy automatically and instantly invalidates the CDN cache, so your users can always access the latest content on your site.
Custom Domains
Add your own domains to your site easily using Render's custom domains guide.
Pull Request Previews
With Pull Request (PR) previews, you can visualize changes introduced in a pull request instead of simply relying on code reviews.
Once enabled, every PR for your site will automatically generate a new static site based on the code in the PR. It will have its own URL, and it will be deleted automatically when the PR is closed.
Read more about Pull Request Previews on Render.
Hugo Themes
Render automatically downloads all Git submodules defined in your Git repo on every build. This way Hugo themes added as submodules work as expected.
Support
Chat with Render developers at https://render.com/chat or email support@render.com
if you need help.