gpt4 book ai didi

docker - 我无法连接到Docker上的hugo网站

转载 作者:行者123 更新时间:2023-12-02 19:21:35 24 4
gpt4 key购买 nike

最近,我创建了一个 docker ,并在其中创建了一个hugo站点,当我启动页面但在导航器中不收费时,问题就来了。我是新来的,所以我迷路了。

这是我启动网站时显示的内容:

WARN 2019/12/09 16:15:11 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

| EN
+------------------+----+
Pages | 4
Paginator pages | 0
Non-page files | 0
Static files | 17
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0

Total in 6 ms
Watching for changes in /cvcontainer/cv-online/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /cvcontainer/cv-online/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

最佳答案

运行服务器时尝试添加--bind 0.0.0.0。对于前。 CMD ["hugo", "server", "--bind=0.0.0.0"]

关于docker - 我无法连接到Docker上的hugo网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59252757/

24 4 0