命令在没有响应后尝试将hugo博客部署到带有wercker的github页面时超时

时间:2015-06-03 21:53:16

标签: github-pages wercker hugo

我正在尝试使用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万我还会遇到超时。

任何帮助表示赞赏,

埃尔韦

1 个答案:

答案 0 :(得分: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页面。