-
Notifications
You must be signed in to change notification settings - Fork 94
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
how to adjust the HUGO_BASE_URL? #90
Comments
I think it honors the |
The image seems not to honor the baseURL setting from config-toml I got it working by providing the Environment variable (HUGO_BASEURL) by:
I think the baseURL from config.toml should be used if no explicit environment variable is set! I think this could be achieved by pimping https://github.com/jojomi/docker-hugo/blob/master/run.sh a bit, just pass argument I think the same problem exists for themes defined in config.toml, but not provided as environment-variable. |
@znegva Thanks for your analysis which I think is correct. Would you be able and willing to supply a PR with a patch for this? |
Sorry @jojomi , I dont have much time left for side projects (and testing ;) ) But it should be something like this:
|
If it's not late, I change the --baseURL="$HUGO_BASEURL" in the Dockerfile and also in the config.toml, then was good to go. |
I want to use another url instead of localhost in production, how can I do that? my URL starts with https instead of http and it does not work.
The text was updated successfully, but these errors were encountered: