【问题标题】:Can't push PHP application to heroku [closed]无法将 PHP 应用程序推送到 heroku [关闭]
【发布时间】: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):

  1. 我在 Eclipse 工作区中创建了一个新文件夹。
  2. 在这个文件夹中我运行了git init
  3. 我在这个文件夹中创建了一个新的 PHP 项目(在 Eclipse 中)。
  4. 我运行heroku create
  5. 我使用 TortoiseGit 提交文件(我也尝试过使用命令行,没有区别)。
  6. 我使用git push heroku master 推送存储库
  7. 然后我收到上述错误。

我已经尝试过多次使用新文件夹、新存储库,但每次都会发生这种情况。

我做错了什么?

编辑:对于建议重复帖子的人:

我看到帖子Heroku push rejected, no Cedar-supported app detected 描述了一个Ruby 应用程序的问题,其中Gemfile 拼写错误。我的应用程序是 PHP 应用程序,没有Gemfile

【问题讨论】:

  • 编辑了帖子并描述了为什么它不是重复的:)

标签: php git heroku


【解决方案1】:

我想,Heroku 并没有将我的应用程序重新定位为 PHP 应用程序。我创建了一个带有 hello world 脚本的index.php,然后砰!一切正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-12-12
    • 2016-05-12
    • 1970-01-01
    • 2016-05-26
    • 2015-09-22
    • 2015-03-13
    • 2014-08-05
    • 1970-01-01
    相关资源
    最近更新 更多