【问题标题】:Dokku zero downtime deploy CHECKS failsDokku 零停机时间部署 CHECKS 失败
【发布时间】:2015-10-15 06:36:01
【问题描述】:

开始在 Dokku 中使用零停机时间部署,但无法检查 CHECKS 文件。

检查文件内容,/home/dokku/oktob/CHECKS

WAIT=30     # Wait 1/2 minute
TIMEOUT=60  # Timeout after a minute
ATTEMPTS=10  # attempt checks 10 times

/pages/about info@oktob.io
/assets/twitter-f5f5e668ebe5e0324b1cc9f568d47e2d.jpg

应用程序在178.62.102.155 运行,第一个路径是about page,第二个是image

这是部署失败消息

-----> Discovering process types
       Procfile declares types -> web
-----> Releasing oktob...
-----> Deploying oktob...
-----> Checking status of PostgreSQL
       Found image postgresql/oktob database
       Checking status... ok.
-----> Running pre-flight checks
Waiting 5 seconds ...
checking with: curl -q --compressed --fail --location --max-time 30 http://172.17.1.167:5000WAIT=30
remote:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
remote:                                  Dload  Upload   Total   Spent    Left  Speed
remote:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: 172.17.1.167:5000WAIT=30
remote: /usr/local/bin/dokku: line 42: 21380 Killed                  dokku deploy "$APP"
To dokku@178.62.102.155:oktob
 ! [remote rejected] zero-downtime-deploy -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@178.62.102.155:oktob'

【问题讨论】:

    标签: deployment docker dokku


    【解决方案1】:

    我在 Rails 应用程序根目录中添加了 CHECKS 文件,它可以工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-24
      • 1970-01-01
      • 2013-05-12
      • 1970-01-01
      • 2021-02-23
      • 2019-11-22
      相关资源
      最近更新 更多