簡體   English   中英

Rails-Capistrano部署失敗

[英]Rails - Capistrano deployment failing

我試圖弄清楚為什么部署失敗但在日志中看不到任何內容:

* 2017-12-04 11:54:56 executing `staging'
triggering start callbacks for `deploy'
* 2017-12-04 11:54:56 executing `multistage:ensure'
* 2017-12-04 11:54:56 executing `deploy'
triggering before callbacks for `deploy'
* 2017-12-04 11:54:56 executing `slack:starting'
* 2017-12-04 11:54:59 executing `deploy:update'
** transaction: start
* 2017-12-04 11:54:59 executing `deploy:update_code'
updating the cached checkout on all servers
* executing "if [ -d /home/rails/apps/premium-
tours/staging/shared/cached-copy ]; then cd /home/rails/apps/premium-tours/staging/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 6bc353816fce7aa0b70ac97c3e46f79ee6ced659 && git clean -q -d -x -f; else git clone -q -b staging git@github.com:rawnet/premium-tours /home/rails/apps/premium-tours/staging/shared/cached-copy && cd /home/rails/apps/premium-tours/staging/shared/cached-copy && git checkout -q -b deploy 6bc353816fce7aa0b70ac97c3e46f79ee6ced659; fi"
servers: ["94.236.126.220"]
*** [deploy:update_code] rolling back
* executing "rm -rf /home/rails/apps/premium-tours/staging/releases/20171204115614; true"

 servers: ["94.236.126.220"]
 ** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: 94.236.126.220 (Errno::ETIMEDOUT: Operation timed out - connect(2) for "94.236.126.220" port 22)
connection failed for: 94.236.126.220 (Errno::ETIMEDOUT: Operation timed out - connect(2) for "94.236.126.220" port 22)

感謝您提供任何幫助-就像我說的,我不知道要查找什么,並且在開始回滾之前看不到任何錯誤消息

其連接問題,請檢查ip和端口。 嘗試這個:

config / deploy / production.rb

服務器“#{server_ip_here}”,用戶:“ deploy”,角色:%w {web app db},端口:222

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM