【发布时间】:2012-09-21 13:18:03
【问题描述】:
我无法将我的 PHP 项目推送到 Heroku。每次我尝试推送时都会出现此错误:
----> Heroku receiving push
! Heroku push rejected, no Cedar-supported app detected.
To git@heroku.com:intense-hamlet-7552.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:intense-hamlet-7552.git'
这是我第一次使用 Heroku,所以这就是我所做的(尝试关注 this):
- 我在 Eclipse 工作区中创建了一个新文件夹。
- 在这个文件夹中我运行了
git init。 - 我在这个文件夹中创建了一个新的 PHP 项目(在 Eclipse 中)。
- 我运行
heroku create。 - 我使用 TortoiseGit 提交文件(我也尝试过使用命令行,没有区别)。
- 我使用
git push heroku master推送存储库 - 然后我收到上述错误。
我已经尝试过多次使用新文件夹、新存储库,但每次都会发生这种情况。
我做错了什么?
编辑:对于建议重复帖子的人:
我看到帖子Heroku push rejected, no Cedar-supported app detected 描述了一个Ruby 应用程序的问题,其中Gemfile 拼写错误。我的应用程序是 PHP 应用程序,没有Gemfile。
【问题讨论】:
-
编辑了帖子并描述了为什么它不是重复的:)