Dokku零停机部署CHECKS失败

时间:2015-10-15 06:36:01

标签: deployment docker dokku

开始使用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'

1 个答案:

答案 0 :(得分:0)

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