2015-07-19 115 views
0

嗨,我可以做到这一点,但不再是,即我可以上传更改到openshift git。无法将更改推送到git openshift

我已经尝试重置git回购,强制推动,但没有成功。

这里是我打通日志:

Amits-MacBook-Pro:api $ git push origin master --force

Counting objects: 33, done. Delta compression using up to 4 threads.

Compressing objects: 100% (32/32), done. Writing objects: 100%

(33/33), 1.46 MiB | 0 bytes/s, done. Total 33 (delta 16), reused 0

(delta 0) remote: Postgres already stopped remote: Stopping NodeJS

cartridge remote: No such file or directory -

/var/lib/openshift/.../app-deployments/2015-07-19_07-38-12.349/metadata.json

To ssh://[email protected]/~/git/api.git/ ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'ssh://[email protected]/~/git/api.git/'

回答

0

在这里找到一个快速的解决方案现在可以通过SSH是登录和删除您拥有的应用程序的部署文件夹内的所有内容。

如果您在mac中,则使用此命令删除应用程序部署中的所有内容。

rm -rf *

* NOTE: Your current directory should be app-deployments from where you will run this command.* 
0

我经历了同样的现象,但我注意到,当我在“--no-自动部署”模式下运行它发生。当我将其更改回自动部署时,生命周期执行可确保推送的预期效果。