Git openshift post_部署操作挂钩不工作

Git openshift post_部署操作挂钩不工作,git,openshift,Git,Openshift,我是OpenShift的新手,我正在尝试让post\u deploy动作挂钩工作。我已经创建了post\u deploy文件,然后我尝试了 git update-index --chmod=+x .openshift/action_hooks/* (not working) 及 但是,当我git push时,会出现以下错误: remote: Git Post-Receive Result: failure remote: Activation status: failure remote: A

我是OpenShift的新手,我正在尝试让
post\u deploy
动作挂钩工作。我已经创建了
post\u deploy
文件,然后我尝试了

git update-index --chmod=+x .openshift/action_hooks/* (not working)

但是,当我
git push
时,会出现以下错误:

remote: Git Post-Receive Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: [my_id] (Error activating gear: No such file or directory - /var/lib/openshift/[my_id]/app-root/runtime/repo/.openshift/action_hooks/post_deploy

有什么帮助吗?

嗯,也许可以试试宋承宪进来看看有什么事?请尝试
rhcsh[您的应用程序名称]
,然后
cd$OPENSHIFT\u REPO\u DIR
并检查目录内容。如果出现问题,请尝试重新部署或重新启动。服务器中存在post_部署(与错误中显示的位置相同)。我确实重新启动、修改了post_deploy文件并再次推送了git,但我得到了相同的错误。我在另一个应用程序中遇到了相同的问题:起初,我忘了授予权限,所以我得到了:“.openshift/action_hooks/post_deploy hook不可执行”。然后,我运行了“git update index--chmod=+x.openshift/action\u hooks/post\u deploy”,再次提交并推送,我再次得到了它:“没有这样的文件或目录…”@luciddreamz,有什么新想法吗?问题解决了。我确实在服务器上运行了post_deploy,我看到了真正的错误消息:“bash^M:错误的解释器:没有这样的文件或目录”。这是因为我在windows上以windows格式创建了文件,所以我确实以unix格式保存了文件,并且它确实工作了。我向OpenShift发送了一封电子邮件,建议他们调查如何在部署期间显示真正的消息错误,因为在这种情况下,部署消息说post_部署文件不存在。
remote: Git Post-Receive Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: [my_id] (Error activating gear: No such file or directory - /var/lib/openshift/[my_id]/app-root/runtime/repo/.openshift/action_hooks/post_deploy