-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hugo serve
uses 3 GB when serving archive
#22
Comments
Possibly, a symlink from |
A similar Q&A got as answer "yeah, just don't serve them from Hugo, but store them externally". So, one other solution could be to not serve the archive via Hugo, but have a |
Hugo serve is only used locally when working on the site, but when we deploy it, we will just just Hugo to build it, and use nginx to serve it. So it’s not really a problem outside of the development. |
Cool, good to know! Then running |
Resolve #22: document `hugo serve --renderStaticToDisk` and symlinks
hugo serve
uses 3 GB since we added the archive (#15), which I think is somewhat undesirable 😛 It also takes a bit longer to start.We should figure out if there is a way for
hugo
to serve static files without having it keep them in memory all the time.There is the
--renderStaticToDisk
flag (see options), which copies the entire/static
folder (including the archive) to/public
before serving. Still somewhat undesirable, but already better than keeping everything in memory, I guess?Apparently, someone had the same question in 2019, but they never got an answer.
The text was updated successfully, but these errors were encountered: