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

Fri*_*ous 1 wordpress heroku

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

一切都很好,花花公子,直到......

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'
Run Code Online (Sandbox Code Playgroud)

另外,供参考

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)
Run Code Online (Sandbox Code Playgroud)

这也是......

18:21:48-~/code/abc_wordpress$ heroku config
=== abc_wordpress Config Vars
CLEARDB_DATABASE_URL: mysql://...
DATABASE_URL:         mysql://...
Run Code Online (Sandbox Code Playgroud)

这是怎么回事?

wil*_*ynn 8

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

buildpack PHP需要一个index.php根,以检测您的回购作为PHP应用程序.