You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Hugo are you using (hugo version)?
0.105.0 (latest)
When I use the (cross-platform) binary in hugo_extended_0.105.0_linux-amd64.tar.gz, it doesn't seem to accept environment variables of the form HUGO_BIND=0.0.0.0. It does however accept variables like HUGO_ENV=production. Why is this the case?
The text was updated successfully, but these errors were encountered:
There is not a 1:1:1 relationship between CLI flags, configuration settings, and environment variables.
I think you can use an environment variable to set every configuration value, but the inverse is not true. For example, you can not use a configuration setting to define HUGO_NUMWORKERMULTIPLIER or DART_SASS_BINARY.
With all the work bep did for v0.112.0, I think we have a pretty good handle on the API from the standpoint of CLI flags and configuration settings.
What we do not have is a list of the available environment variables.
Having said all that:
I'd like to be able to use HUGO_SERVERPORT and HUGO_SERVERINTERFACE instead of specifying the --port and --bind flags on the command line. I'll create a separate issue.
We need to document the env vars somewhere. I'll create an issue in the docs repository.
What version of Hugo are you using (
hugo version
)?When I use the (cross-platform) binary in hugo_extended_0.105.0_linux-amd64.tar.gz, it doesn't seem to accept environment variables of the form
HUGO_BIND=0.0.0.0
. It does however accept variables likeHUGO_ENV=production
. Why is this the case?The text was updated successfully, but these errors were encountered: