0

无法使用 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。请注意,相关日志在末尾。

4

1 回答 1

0

我能够通过 Travis CI 发布的新功能解决这个问题,

他们在部署期间进行推送时添加了 -f 选项。

您需要做的就是添加

edge: true

此处描述的 Cloudcontrol 部署选项http://docs.travis-ci.com/user/deployment/#Other-Providers,在您的 yml 文件中

于 2014-06-03T04:37:28.760 回答