Hugo hosting and deployment

Part 5 of Moving from WordPress to Hugo

Part 5 of Moving from WordPress to Hugo

Probably the easiest place to start hosting Hugo for free is Netlify

Deployment is simply:

  • create account on Netlify
  • connect Github repo for the site definition
  • press deploy

In part it is this easy because the Academic Kickstarter comes pre-configured with a netlify.toml file in the project root that contains the necessary configuration for Netlify. Once Netlify has read the repository the configuraiton values are read from this file

  command = "hugo --gc --minify -b $URL"
  publish = "public"

  HUGO_VERSION = "0.55.6"

  HUGO_ENV = "production"

  command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"

  command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

Once I was happy the site was building and deploying I set the domain in Netlify to my proper domain, then edited the DNS settings on my DNS host to point to the new site.

After the usual wait for DNS to propagate, the site went live…

Proactive application of technology to business

My interests include technology, personal knowledge management, social change