klakegg/docker-hugo

Error: Unable to locate config file or config directory. Perhaps you need to create a new site.

dk-do opened this issue · 1 comments

dk-do commented

Hi everybody,

I have running hugo image with ubuntu as os basis in docker-compose.
The site is located in /src/example.com.
When I execute into the container and navigate to /src/example.com and start hugo server, everything is fine.
When I use the command "server" in docker-compose.yaml I get the message in the subject.

How may I define the path to the website?

dk-do commented

Issue can be closed - mounting it directly to /src helps 🤦‍♂️