From the course: Learning Static Site Building with Hugo

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Deploy your site with Netlify

Deploy your site with Netlify

From the course: Learning Static Site Building with Hugo

Start my 1-month free trial

Deploy your site with Netlify

- [Instructor] Now we're ready to deploy the site for the first time. I'll pick the repository I want to deploy. Normally, you'll want to deploy from the master branch, which is the default selection here. For Hugo projects the build command is Hugo and the default output folder is called public, so these defaults are fine as well. I can scroll down and simply click Deploy site. And that's it, after a few seconds, Netlify will finish building the site and give you a random preview URL you can click on to view it. In addition to building the master branch, Netlify can also be configured to create preview deployments of your site for other branches, so you can easily preview changes before they go live.

Contents