无法使用Travis CI将部署从Github存储库推送到CloudClontrol,以下是日志:
Deploying application
Warning: Permanently added 'cloudcontrolled.com' (RSA) to the list of known hosts.
To ssh://xxx.git
! [rejected] HEAD -> master (fetch first)
error: failed to push some refs to 'ssh://awesomeblog@cloudcontrolled.com/repository.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details
有没有办法强制推动覆盖远程git的状态?
如果您需要查看完整日志,可以在此处找到https://s3.amazonaws.com/archive.travis-ci.org/jobs/26330194/log.txt。请注意,相关日志在最后。
答案 0 :(得分:0)
我能够通过Travis CI发布的新功能解决这个问题,
他们在部署期间执行推送时添加了-f选项。
您需要做的就是添加
edge: true
在您的yml文件中,按照此处http://docs.travis-ci.com/user/deployment/#Other-Providers所述进行Cloudcontrol部署的选项