git、Heroku:拒绝预接收钩子 [英] git, Heroku: pre-receive hook declined

查看:29
本文介绍了git、Heroku:拒绝预接收钩子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置 git 存储库并尝试将其链接到 Heroku.当我运行命令时

I am in the process of setting up a git repository and attempting to link it to Heroku. When I run the command

git push heroku master

我收到

Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (7/7), 714 bytes, done.
Total 7 (delta 1), reused 0 (delta 0)

-----> Heroku receiving push

 !     Heroku push rejected due to an unrecognized error.
 !     We've been notified, see http://support.heroku.com if the problem persists.


To git@heroku.com:morning-stream-3712.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:morning-stream-3712.git'

我不太确定还有哪些其他信息会有所帮助,哪些信息只会使事情变得混乱,所以我暂时先把它留在这儿.将我的应用程序推送到 Heroku 的任何帮助将不胜感激.谢谢.

I'm not quite sure what other information would be helpful and what will just muddy the waters, so I'll just leave it at this for now. Any help getting my application pushed to Heroku would be greatly appreciated. Thanks.

推荐答案

确保您正在推送包含适当支持的应用程序(Rails、Django 等)的存储库,而不仅仅是推送一些随机存储库来测试它.

Make sure you are pushing a repo that contains a proper supported app ( Rails, Django etc.) and you are not just pushing some random repo to test it out.

Heroku 新手:错误将我的应用推送到 Heroku 时

如果情况并非如此,并且您正在推送您认为有效的应用程序,请联系 Heroku 支持,他们会为您修复.

If that is not the case and you are pushing what you think is a valid app, contact Heroku support and they will fix it for you.

这篇关于git、Heroku:拒绝预接收钩子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆