我试图找出部署失败但无法在日志中看到任何内容的原因:
* 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)
感谢任何帮助 - 就像我说我不知道要查找什么,在开始回滚之前看不到任何错误消息
答案 0 :(得分:0)
连接问题,检查ip和端口。 试试这个:
服务器“#{server_ip_here}”,用户:“deploy”,角色:%w {web app db},端口:222