- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将我的 Hugo 网站上传到 Netlify,但在构建过程中出现 命令失败,退出代码 255: hugo
错误。由于这是我自己手工编码的东西,我确信我在这个过程中遗漏了一些重要的文件,这会导致一切失败。
我的整个仓库都上传到这里:https://github.com/thedivtagguy/srishtiarchives
部署日志如下:
6:48:17 PM: Build ready to start
6:48:20 PM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
6:48:20 PM: build-image tag: v3.6.1
6:48:20 PM: buildbot version: 3f7ff7bbf92b8c2ecf180659ea5b1472b472d308
6:48:20 PM: Fetching cached dependencies
6:48:20 PM: Failed to fetch cache, continuing with build
6:48:20 PM: Starting to prepare the repo for build
6:48:21 PM: No cached dependencies found. Cloning fresh repo
6:48:21 PM: git clone https://github.com/thedivtagguy/srishtiarchives
6:48:21 PM: Preparing Git Reference refs/heads/master
6:48:23 PM: Starting build script
6:48:23 PM: Installing dependencies
6:48:23 PM: Python version set to 2.7
6:48:24 PM: v12.18.0 is already installed.
6:48:25 PM: Now using node v12.18.0 (npm v6.14.4)
6:48:25 PM: Started restoring cached build plugins
6:48:25 PM: Finished restoring cached build plugins
6:48:25 PM: Attempting ruby version 2.7.1, read from environment
6:48:26 PM: Using ruby version 2.7.1
6:48:27 PM: Using PHP version 5.6
6:48:27 PM: Installing Hugo 0.54.0
6:48:28 PM: Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
6:48:28 PM: Started restoring cached go cache
6:48:28 PM: Finished restoring cached go cache
6:48:28 PM: go version go1.14.4 linux/amd64
6:48:28 PM: go version go1.14.4 linux/amd64
6:48:28 PM: Installing missing commands
6:48:28 PM: Verify run directory
6:48:29 PM:
6:48:29 PM: ────────────────────────────────────────────────────────────────
6:48:29 PM: Netlify Build
6:48:29 PM: ────────────────────────────────────────────────────────────────
6:48:29 PM:
6:48:29 PM: ❯ Version
6:48:29 PM: @netlify/build 9.1.2
6:48:29 PM:
6:48:29 PM: ❯ Flags
6:48:29 PM: deployId: 602e6919def5380007a9640a
6:48:29 PM: mode: buildbot
6:48:29 PM:
6:48:29 PM: ❯ Current directory
6:48:29 PM: /opt/build/repo
6:48:29 PM:
6:48:29 PM: ❯ Config file
6:48:29 PM: /opt/build/repo/netlify.toml
6:48:29 PM:
6:48:29 PM: ❯ Context
6:48:29 PM: production
6:48:29 PM:
6:48:29 PM: ────────────────────────────────────────────────────────────────
6:48:29 PM: 1. build.command from netlify.toml
6:48:29 PM: ────────────────────────────────────────────────────────────────
6:48:29 PM:
6:48:29 PM: $ hugo
6:48:30 PM: ERROR 2021/02/18 13:18:30 ARCHIVES theme does not support Hugo version 0.54.0. Minimum version required is 0.69
6:48:30 PM: Building sites … ERROR 2021/02/18 13:18:30 render of "page" failed: execute of template failed: template: _default/single.html:3:7: executing "_default/single.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/themes/archives/layouts/partials/head.html:22:55": execute of template failed: template: partials/head.html:22:55: executing "partials/head.html" at <resources>: can't evaluate field PostProcess in type interface {}ERROR 2021/02/18 13:18:30 render of "page" failed: execute of template failed: template: _default/single.html:3:7: executing "_default/single.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/themes/archives/layouts/partials/head.html:22:55": execute of template failed: template: partials/head.html:22:55: executing "partials/head.html" at <resources>: can't evaluate field PostProcess in type interface {}ERROR 2021/02/18 13:18:30 render of "page" failed: execute of template failed: template: _default/guide.html:3:7: executing "_default/guide.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/themes/archives/layouts/partials/head.html:22:55": execute of template failed: template: partials/head.html:22:55: executing "partials/head.html" at <resources>: can't evaluate field PostProcess in type interface {}ERROR 2021/02/18 13:18:30 render of "page" failed: execute of template failed: template: _default/single.html:3:7: executing "_default/single.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/themes/archives/layouts/partials/head.html:22:55": execute of template failed: template: partials/head.html:22:55: executing "partials/head.html" at <resources>: can't evaluate field PostProcess in type interface {}Total in 9 ms
6:48:30 PM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:3:7: executing "_default/single.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/themes/archives/layouts/partials/head.html:22:55": execute of template failed: template: partials/head.html:22:55: executing "partials/head.html" at <resources>: can't evaluate field PostProcess in type interface {}
6:48:30 PM: ────────────────────────────────────────────────────────────────
6:48:30 PM: "build.command" failed
6:48:30 PM: ────────────────────────────────────────────────────────────────
6:48:30 PM:
6:48:30 PM: Error message
6:48:30 PM: Command failed with exit code 255: hugo
6:48:30 PM:
6:48:30 PM: Error location
6:48:30 PM: In build.command from netlify.toml:
6:48:30 PM: hugo
6:48:30 PM:
6:48:30 PM: Resolved config
6:48:30 PM: build:
6:48:30 PM: command: hugo
6:48:30 PM: commandOrigin: config
6:48:30 PM: environment:
6:48:30 PM: - HUGO_VERSION
6:48:30 PM: - HUGO_ENV
6:48:30 PM: - HUGO_ENABLEGITINFO
6:48:30 PM: publish: /opt/build/repo/public
6:48:30 PM: Caching artifacts
6:48:30 PM: Started saving build plugins
6:48:30 PM: Finished saving build plugins
6:48:30 PM: Started saving pip cache
6:48:30 PM: Finished saving pip cache
6:48:30 PM: Started saving emacs cask dependencies
6:48:30 PM: Finished saving emacs cask dependencies
6:48:30 PM: Started saving maven dependencies
6:48:30 PM: Finished saving maven dependencies
6:48:30 PM: Started saving boot dependencies
6:48:30 PM: Finished saving boot dependencies
6:48:30 PM: Started saving rust rustup cache
6:48:30 PM: Finished saving rust rustup cache
6:48:30 PM: Started saving go dependencies
6:48:30 PM: Finished saving go dependencies
6:48:33 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:48:33 PM: Failing build: Failed to build site
6:48:33 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
6:48:33 PM: Finished processing build request in 12.654455975s
根据我在论坛上找到的先前答案,我认为这是因为我缺少 netlify.toml 文件(我确实是),所以我添加了以下内容:
[build]
publish = "public"
command = "hugo"
[context.production.environment]
HUGO_VERSION = "0.54.0" # if older, use format: 0.53 (no trailing zero)
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.branch-deploy.environment]
HUGO_VERSION = "0.54.0" # if older, use format: 0.53 (no trailing zero)
[context.deploy-preview.environment]
HUGO_VERSION = "0.54.0"
这也无法修复错误。我做错了什么,我该如何解决?
最佳答案
在您的部署日志中有关于最低支持版本的信息:所需的最低版本为 0.69
,尝试通过将 HUGO_VERSION
更改为更新您的 netlify.toml 文件0.69.0
(或更高版本,参见 releases)。
关于netlify - Hugo Netlify 构建过程失败 : Exit Code 255,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66260899/
我相信所有这些(甚至是 die() 或 die(0))都是相同的。如果它们不相同,那么哪个更适合成功退出脚本?如果它们相同,是否有任何首选标准表明脚本成功完成?我倾向于使用 exit;. 编辑:所有答
我想知道Java中以下之间的区别 System.exit(0);System.exit(-1);System.exit(1); 我什么时候必须适本地使用上面的代码?
我注意到 Powershell 中有一个奇怪的行为。有两个 .ps1 文件: main.ps1: echo "running exit.ps1" $myexitcode = & ".\exit.p
Anylogic Process Modeling Library 中很少有像“Source”这样的 block 具有“On exit”和“On at exit”这样的操作。两者有什么区别? 我试图创
所以我有这个 Bash 脚本: #!/bin/bash PID=`ps -u ...` if [ "$PID" = "" ]; then echo $(date) Server off: no
(gdb) info symbol exit exit in section .text of /lib64/libc.so.6 (gdb) info symbol _exit _exit in se
如果我想启动一个简单的应用程序,几周前我使用它没有出现错误,我会收到错误消息。那是他的错误描述: Launching lib\main.dart on SM J530F in debug mode..
这个问题已经有答案了: Using Platform.exit() and System.exit(int) together (3 个回答) 已关闭 5 年前。 这里有人建议使用后者。我是java新
我的理解是,在 bash 中,一个普通的 exit 将完成一个具有最后一个命令的退出状态的脚本。但我也看到有人使用 exit $? 并且当我建议它具有相同的行为时被质疑。 这两个脚本之间有什么有意义的
我看到一些代码是这样做的: if(something){ echo 'exit from program'; die; } ...more code 和其他只使用 die 的人: if
exit和exit有什么区别!在 ruby 中? 最佳答案 一些事情: 退出处理程序以“退出”形式而非“退出!”形式运行。这意味着分配给“清理”的任何代码都不会使用“退出!”运行 “退出状态”在“退出
我们有一堆 .bat构建脚本由基于 PowerShell 的 GitLab 运行程序调用,这些脚本最近从以下内容重构: program args if !errorlevel! neq 0 exit
我想关闭具有指定返回码的 javafx 应用程序。浏览 SO 上的答案,我发现了以下成语: Platform.exit(); System.exit(0); 例如这里: Stop threads be
exit 和 C++ 中的 std::exit 有什么区别?我已经对其进行了研究,但我找不到任何东西。 这两个代码有什么区别: 1: if(SDL_Init(SDL_INIT_EVERYTHING)
我需要一个替代方法来在线程函数内终止 python 脚本。我的意图是在客户端输入 0 时终止服务器...这是否不起作用,因为线程尚未终止?这是我的代码: socket = socket.socket(
我想在崩溃后重新启动应用程序。我正在使用下面的代码来执行该任务。 Intent mStartActivity = new Intent(HomeActivity.this, SplashScreen
在Delphi中,你可以退出一个函数并给它一个返回值,这与C/C++/Java/C#等中的return关键字非常相似 Exit(1); 但是,我通常会写这样的内容: Result := 1; Exit
我想知道是否有任何方法可以处理浏览器退出事件。 例如,我想在用户单击交叉退出或关闭浏览器时发送查询。 最佳答案 我想我已经找到了解决办法。我没有在 IE 上测试过它,但它似乎在 Firefox 上运行
我在 Archlinux 的 mkinitcpio 脚本中找到了以下代码片段。 cleanup() { if [[ $workdir ]]; then # when PRESE
我使用以下代码计算数据帧所有行之间的余弦相似度: from pyspark.ml.feature import Normalizer from pyspark.mllib.linalg.distrib
我是一名优秀的程序员,十分优秀!