Hugo is a versatile static site generator for blogs and websites alike. Deploying your Hugo site on Runway is as easy as:
runway app create && runway app deploy
Run these commands inside your repository and Runway will build and deploy your website (with Nginx).
Our Hugo buildpack includes Golang for hugo mod and serves your site with Nginx.
To use a specific Hugo version, set the following:
runway app config set BP_RUNWAY_STATIC_HUGO_VERSION=0.157.0
[build]
[[build.env]]
name = "BP_RUNWAY_STATIC_HUGO_VERSION"
value = "0.157.0"
To configure Nginx, add an nginx.conf file to the root of your repository with your server configuration. To see an example of what is needed, you can check out the web server config recipe.
We also have an example for Hugo on GitHub, but no Runway-specific configuration is needed.