尝试使用 wercker 将 hugo 博客部署到 github 页面后,命令超时

Command timed out after no response trying to deploy hugo blog to github page with wercker

我正在尝试使用 Wercker 将我的 Hugo 博客自动部署到 Github 页面。构建阶段没问题,我可以用我的博客静态文件构建我的 public 目录。但是在尝试将我的 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"

我收到一条超时消息,我尝试延长超时持续时间以防万一,但我也 运行 超时了 15 分钟。

感谢任何帮助,

埃尔韦

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

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

事实上,domain 标签不是可选的,我必须将它设置为 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 个页面中。