1

我一直在尝试使用教程 @ 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'

另外,供参考

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://...

这是怎么回事?

4

1 回答 1

8

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

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

于 2012-12-04T03:49:06.367 回答