Hosting a Hugo Site

So Hugo operates in two different modes.

Mode 1: hugo

This mode will take the source files and output html files into the destination directory on your local computer. From there you can copy these files to any server in the world (nginx, apache, s3, etc).

Mode 2: hugo server
In this mode Hugo takes the source files and can serve them up over a port. There is no need for an additional server. The performance is quite good here, but not quite as good as nginx or a finely tuned apache. In my testing it’s about 20% slower. In contrast using a dynamic system like wordpress or ruby is a few magnitudes slower. hugo server will serve files, but you can’t just run that on your laptop and expect the site to be available online because of routing and firewall issues. You would need to run this on a server for it to be online.

1 Like