远程拒绝的主人 - >主人(预接收钩拒绝) [英] remote rejected master -> master (pre-receive hook declined)

查看:104
本文介绍了远程拒绝的主人 - >主人(预接收钩拒绝)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  git push heroku 

我正在使用rails 3.2,并且在尝试推送到heroku时收到错误消息。 master
计数对象:496,完成。
使用多达8个线程的增量压缩。
压缩对象:100%(435/435),完成。
写作对象:100%(496/496),5.17 MiB | 249 KiB / s,完成。
共计496(增量125),重新使用216(增量8)

-----> Heroku接收推送
----->删除.DS_Store文件
! Heroku推送拒绝,没有雪松支持的应用程序检测到

到git@heroku.com:lumeo.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:未能将某些参考文献推送到'git@heroku.com:lumeo.git'

我尝试了这个论坛上推荐的几种方法,包括清空并重新安装Gems,删除和添加远程程序,都无济于事。



任何建议?

确保您的Rails应用程序位于回购的根目录中,正确命名。它基本上无法将您的代码库作为受支持的项目类型之一进行检测,因此无法执行。此外,即使你确实有一个合适的项目,确保它是存储库的一部分,并且你已经承诺它很好( git status 会在这里帮助你,并且一个 ls 应该帮助您验证项目结构)。


I'm working in rails 3.2 and I receive an error when I try to push to heroku:

 git push heroku master
Counting objects: 496, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (435/435), done.
Writing objects: 100% (496/496), 5.17 MiB | 249 KiB/s, done.
Total 496 (delta 125), reused 216 (delta 8)

-----> Heroku receiving push
-----> Removing .DS_Store files
 !     Heroku push rejected, no Cedar-supported app detected

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

I have tried the few methods recommended on this forum, including emptying and reinstalling the Gems and deleting and adding the remote, to no avail.

any suggestions?

解决方案

Make sure that your Rails app is in the root of the repo, the Gemfile is present and properly named. It is basically not able to detect your code base as one of the supported project types and hence failing it. Also, even if you do have a proper project, make sure it is part of the repository and you have committed it fine (git status will help you here and a ls should help you verify the project structure).

这篇关于远程拒绝的主人 - >主人(预接收钩拒绝)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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