我无法推送到我的OpenShift帐户。在第一次推动时我得到了这个:
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 321 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Not stopping cartridge nodejs because hot deploy is enabled
remote: Not stopping cartridge mongodb because hot deploy is enabled
remote: No such file or directory - /var/lib/openshift/54f614834387ec5dbe000201/app-deployments/2015-04-30_16-45-12.229/repo/node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/user-home
To ssh://54f614834387ec5dbe000201@nodejs-fightersconnect.rhcloud.com/~/git/nodejs.git/
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://54f614834387ec5dbe000201@nodejs-abcaaaa.rhcloud.com/~/git/nodejs.git/'
现在,当我推送我的git报告“一切都是最新的”但我的更改没有填充。这似乎是OpenShift的一个问题,但我还没有收到任何回复。我能做些什么来解决它吗?
答案 0 :(得分:1)
很奇怪,所以你的所有更改都已提交,但远程方面的某些内容失败了?
如果是这种情况,我会尝试使用OpenShift's deployment and rollback options重新部署更改。基本上,使用rhc deployment list -a <app>
获取最近部署sha1的列表,使用rhc deployment show <deployment_id> -a <app>
查看该部署的详细信息(可选),然后使用rhc deploy <deployment_id> -a <app>
重新部署失败的部署
$ rhc deployment list -a <app>
$ rhc deployment show <deployment_id> -a <app>
$ rhc deploy <deployment_id> -a <app>
查看option #2以获取有关其工作原理的完整详情。
答案 1 :(得分:1)
我的问题是我没有正确推送git,当我假设只使用git push origin master
git push
示例:强>
git init
git add .
git commit -m "message"
git push