繁体   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