首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Netlify上部署hugo静态站点

在Netlify上部署hugo静态站点
EN

Stack Overflow用户
提问于 2019-11-25 07:05:07
回答 1查看 358关注 0票数 2

我有问题来部署我的静态网站从雨果在NETLIFY。

https://github.com/glaiveVII/hugo_quickstart

  • I的链接
  • 重新检查了我的netlify.toml文件,重新建立了我的子模块,但是我的主题子模块
  • 仍然有问题,我以前从未遇到过这样的问题,开发人员日志:

代码语言:javascript
复制
2:57:08 PM: Build ready to start
2:57:17 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
2:57:17 PM: build-image tag: v3.3.2
2:57:17 PM: buildbot version: a2bab682ae0761baa4d123ebd00c57be933655dc
2:57:17 PM: Fetching cached dependencies
2:57:17 PM: Failed to fetch cache, continuing with build
2:57:17 PM: Starting to prepare the repo for build
2:57:18 PM: No cached dependencies found. Cloning fresh repo
2:57:18 PM: git clone https://github.com/glaiveVII/hugo_quickstart
2:57:18 PM: Preparing Git Reference refs/heads/master
2:57:21 PM: Error checking out submodules: Submodule 'themes/ananke' (https://github.com/budparr/gohugo-theme-ananke.git) registered for path 'themes/ananke'
Submodule 'themes/hyde-hyde' (https://github.com/htr3n/hyde-hyde.git) registered for path 'themes/hyde-hyde'
Cloning into '/opt/build/repo/themes/ananke'...
Cloning into '/opt/build/repo/themes/hyde-hyde'...
Submodule path 'themes/ananke': checked out '11246e470dedf8e563af4e215f388ce2bcc4685a'
error: Server does not allow request for unadvertised object 984f6bcfc2385be29cd05246f0eaf3bcfdef18fd
Fetched in submodule path 'themes/hyde-hyde', but it did not contain 984f6bcfc2385be29cd05246f0eaf3bcfdef18fd. Direct fetching of that commit failed.
2:57:21 PM: Failing build: Failed to prepare repo
2:57:21 PM: failed during stage 'preparing repo': Error checking out submodules: Submodule 'themes/ananke' (https://github.com/budparr/gohugo-theme-ananke.git) registered for path 'themes/ananke'
Submodule 'themes/hyde-hyde' (https://github.com/htr3n/hyde-hyde.git) registered for path 'themes/hyde-hyde'
Cloning into '/opt/build/repo/themes/ananke'...
Cloning into '/opt/build/repo/themes/hyde-hyde'...
Submodule path 'themes/ananke': checked out '11246e470dedf8e563af4e215f388ce2bcc4685a'
error: Server does not allow request for unadvertised object 984f6bcfc2385be29cd05246f0eaf3bcfdef18fd
Fetched in submodule path 'themes/hyde-hyde', but it did not contain 984f6bcfc2385be29cd05246f0eaf3bcfdef18fd. Direct fetching of that commit failed.
: exit status 1
2:57:21 PM: Finished processing build request in 4.298914476s

  • my netlify.toml文件:

代码语言:javascript
复制
[build]
  publish = "public"
  command = "hugo"

[context.production.environment]
  HUGO_VERSION = "0.59.1"
  HUGO_ENV = "production"
  HUGO_ENABLEGITINFO = "true"

  • my子模块文件:

代码语言:javascript
复制
[submodule "themes/ananke"]
    path = themes/ananke
    url = https://github.com/budparr/gohugo-theme-ananke.git

[submodule "themes/hyde-hyde"]
    path = themes/hyde-hyde
    url = https://github.com/htr3n/hyde-hyde.git

  • 我的config.toml文件的一个重要部分:

代码语言:javascript
复制
languageCode = "en-us"
title = "Julien Pelegri"
theme = "hyde-hyde"

## Basic Configuration
baseurl = "https://pelegri.netlify.com/"

  • 提前感谢您的回复!
EN

回答 1

Stack Overflow用户

发布于 2019-11-25 16:39:00

我解决了我的问题,我做了很多事情:-在我的netlify.toml中升级我的hugo版本-清除缓存重新添加子模块。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59026726

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档