【问题标题】:Heroku push rejected, no Cedar-supported app detected wordpressHeroku 推送被拒绝,没有检测到支持 Cedar 的应用程序 wordpress
【发布时间】:2012-12-04 12:24:41
【问题描述】:

我一直在尝试使用教程@将 wordpress 部署到 heroku 应用程序上 http://decielo.com/articles/350/wordpress-on-heroku-up-and-running

一切正常,花花公子,直到...

18:25:53-~/code/abc_wordpress$ git push production master
Counting objects: 1080, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1058/1058), done.
Writing objects: 100% (1080/1080), 4.48 MiB | 174 KiB/s, done.
Total 1080 (delta 66), reused 0 (delta 0)

-----> Heroku receiving push
 !     Heroku push rejected, no Cedar-supported app detected

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

也供参考

18:25:50-~/code/abc_wordpress$ git remote -v
production  git@heroku.com:abc_wordpress.git (fetch)
production  git@heroku.com:abc_wordpress.git (push)

还有这个……

18:21:48-~/code/abc_wordpress$ heroku config
=== abc_wordpress Config Vars
CLEARDB_DATABASE_URL: mysql://...
DATABASE_URL:         mysql://...

发生了什么事?

【问题讨论】:

  • 另外,您刚刚在公共论坛上发布了您的数据库凭据。您可能应该在某人做某事之前让那些轮换。
  • 谢谢 - 数据库和 url 是虚拟名称,不存在 - 不过我很感激这个提示

标签: wordpress heroku


【解决方案1】:

我猜你错过了将应用程序移出wordpress/ 并移至 git 存储库的根目录的步骤。换句话说,git ls-files 应该显示 index.php,而不是 wordpress/index.php

PHP buildpack 需要在根目录中使用 index.php 才能将您的 repo 检测为 PHP 应用程序。

【讨论】:

  • 我通过重做步骤解决了答案,我相信这可能是其中的一部分。
猜你喜欢
  • 2012-03-07
  • 2012-01-11
  • 1970-01-01
  • 2014-11-09
  • 2012-12-05
  • 2014-01-22
  • 2014-04-22
  • 2015-07-18
  • 2013-11-28
相关资源
最近更新 更多