本文介绍了Heroku推送被拒绝,没有雪松支持的应用程序检测到wordpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在尝试使用教程@
将wordpress部署到一个heroku应用程序中。
一切正常,并且花哨直到......
18:25:53-〜/ code / abc_wordpress $ git push production master
计数对象:1080,完成。
使用多达4个线程的增量压缩。
压缩对象:100%(1058/1058),完成。
写作对象:100%(1080/1080),4.48 MiB | 174 KiB / s,完成。
共计1080(增量66),重用0(增量0)
-----> Heroku接收推送
! Heroku推送被拒绝,没有Cedar支持的应用程序检测到
到[email protected]:abc_wordpress.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:未能将某些参考文献推送到'[email protected]:abc_wordpress.git'
另外,仅供参考
18:25:50-〜/ code / abc_wordpress $ git remote -v
production [email protected]:abc_wordpress.git(fetch)
production [email protected]:abc_wordpress.git(推送)
以及...
18:21 :48-〜/ code / abc_wordpress $ heroku config
=== abc_wordpress Config Vars
CLEARDB_DATABASE_URL:mysql:// ...
DATABASE_URL:mysql:// ...
发生了什么事?
解决方案我猜你错过了将应用程序从
> wordpress /
移动到git存储库根目录的步骤。换句话说, git ls-files
应该显示 index.php
,而不是 wordpress / index .php
。 在根目录下需要一个 index.php
才能检测到您的repo是一个PHP应用程序。 / p>
I've been trying to deploy wordpress onto a heroku app using the tutorial @http://decielo.com/articles/350/wordpress-on-heroku-up-and-running
Everything works fine and dandy until...
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 [email protected]:abc_wordpress.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:abc_wordpress.git'
Also, for reference
18:25:50-~/code/abc_wordpress$ git remote -v
production [email protected]:abc_wordpress.git (fetch)
production [email protected]:abc_wordpress.git (push)
and this too...
18:21:48-~/code/abc_wordpress$ heroku config
=== abc_wordpress Config Vars
CLEARDB_DATABASE_URL: mysql://...
DATABASE_URL: mysql://...
what's going on?
解决方案
I'm guessing you missed the step where you move the application out of wordpress/
and into the root of the git respository. Put another way, git ls-files
should show index.php
, not wordpress/index.php
.
The PHP buildpack requires an index.php
in the root in order to detect your repo as a PHP application.
这篇关于Heroku推送被拒绝,没有雪松支持的应用程序检测到wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
07-26 14:14