0

我正在尝试使用 Wercker 将我的 Hugo 博客自动部署到 Github 页面。构建阶段没问题,我可以用我的博客静态文件构建我的公共目录。但是我在尝试将我的 hugo 博客部署到 github 页面时没有响应错误后命令超时。

这是我的 wercker.yml 文件

box: python:wheezy no-response-timeout: 15 build: steps: - arjen/hugo-build: theme: hd-theme flags: --disableSitemap=true deploy: steps: - lukevivier/gh-pages@0.2.1: token: $GIT_TOKEN repo: herveDarritchon/herveDarritchon.github.io basedir: public

### My log Error during deployment

Running wercker version: 1.0.152 (Compiled at: 2015-06-02T19:21:14Z, Git commit: 12391582ed7323e803e15b277b9da3a65f7dde7c)
Using config:
box: python:wheezy
no-response-timeout: 15
build:
  steps:
    - arjen/hugo-build:
        theme: hd-theme
        flags: --disableSitemap=true
deploy:
  steps:
    - lukevivier/gh-pages@0.2.1:
        token: $GIT_TOKEN
        repo: herveDarritchon/herveDarritchon.github.io
        basedir: public

Pulling repository python
Pulling image (wheezy) from python: 169d81d45993
Pulling image (wheezy) from python, endpoint: https://registry-1.docker.io/v1/: 169d81d45993
Pulling dependent layers: 169d81d45993
Download complete: 7a3e804ed6c0
Download complete: b96d1548a24e
Download complete: 0f57835aec39
Download complete: 7d22d0f990bc
Download complete: be6ffc9d87fc
Download complete: 6cb13f325b61
Download complete: b394be4f3c52
Download complete: ddc8488da9fa
Download complete: 13700980fafa
Download complete: 7f729a93d07e
Download complete: 089f6d0ff231
Download complete: 7c67244ee4eb
Download complete: 169d81d45993
Download complete: 169d81d45993
Status: Image is up to date for python:wheezy
export WERCKER="true"
export WERCKER_ROOT="/pipeline/source"
export WERCKER_SOURCE_DIR="/pipeline/source"
export WERCKER_CACHE_DIR="/cache"
export WERCKER_OUTPUT_DIR="/pipeline/output"
export WERCKER_PIPELINE_DIR="/pipeline"
export WERCKER_REPORT_DIR="/pipeline/report"
export WERCKER_APPLICATION_ID="556eaec700bccd884305010b"
export WERCKER_APPLICATION_NAME="software-the-good-parts"
export WERCKER_APPLICATION_OWNER_NAME="herveDarritchon"
export WERCKER_APPLICATION_URL="https://app.wercker.com/#application/556eaec700bccd884305010b"
export TERM="xterm-256color"
export DEPLOY="true"
export WERCKER_DEPLOY_ID="556eced1453eb1bb0500347f"
export WERCKER_DEPLOY_URL="https://app.wercker.com/#deploy/556eced1453eb1bb0500347f"
export WERCKER_GIT_DOMAIN="github.com"
export WERCKER_GIT_OWNER="herveDarritchon"
export WERCKER_GIT_REPOSITORY="software-the-good-parts"
export WERCKER_GIT_BRANCH="master"
export WERCKER_GIT_COMMIT="9c247dfd78daa8897f4ef73cf050f6a72a35ffbb"
export WERCKER_DEPLOYTARGET_NAME="software-the-good-part"
export WERCKER_STARTED_BY="herveDarritchon"
export WERCKER_MAIN_PIPELINE_STARTED="1433325265"

我有一条超时消息,我试图提高超时时间以防万一,但有 1500 万我也遇到了超时。

任何帮助表示赞赏,

埃尔韦

4

1 回答 1

1

我已经解决了我的问题。它来自我的 wercker.yml 文件和 deply 步骤的内容。

deploy: steps: - lukevivier/gh-pages@0.2.1: token: $GIT_TOKEN repo: herveDarritchon/herveDarritchon.github.io basedir: public

事实上,标签不是可选的,我必须将其设置为 github.com 才能运行我的部署步骤。

我认为您应该更改您的文档以使新手更直接;)

无论如何感谢这一步。

所以新的 wercker.yml 文件是:

box: python:wheezy build: steps: - arjen/hugo-build: theme: hd-theme flags: --disableSitemap=true deploy: steps: - lukevivier/gh-pages@0.2.1: token: $GIT_TOKEN domain: github.com repo: herveDarritchon/herveDarritchon.github.io basedir: public

无论如何,使用这个 wercker.yml 文件,您可以自动构建一个 hugo 站点并将其部署到 github 页面中。

于 2015-06-04T12:39:20.520 回答