Dokku or Heroku buildpack for Hugo (gohugo.io) It will always use the latest stable version of Hugo.
- Build your Hugo website
- Always using the latest version of Hugo
- Dokku server
- Git
First you need to create a dokku app
dokku apps:create awesome-hugo-websiteCreate a .buildpacks at the root of your git repository containing your hugo website and add buildpack-nginx and buildpack-hugo
touch .buildpacks
echo "https://github.com/Valdomar/heroku-buildpack-hugo" > .buildpacks
echo "https://github.com/dokku/buildpack-nginx" >> .buildpacksCreate a .static at the root of your git repository
touch .staticset NGINX_ROOT env variable of your awesome-hugo-website dokku app to public (the output directory of Hugo)
dokku config:set awesome-hugo-website NGINX_ROOT=publicAnd now you just need to deploy your app to your dokku server and it will be builded and rendered!