Heroku推送被拒绝,没有Cedar支持的应用程序检测到wordpress

时间:2012-12-04 02:34:11

标签: wordpress heroku

我一直在尝试使用教程@将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://...

发生了什么事?

1 个答案:

答案 0 :(得分:8)

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

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