Heroku push ถูกปฏิเสธ ไม่พบแอปที่รองรับ Cedar ที่ใช้ WordPress

ฉันพยายามปรับใช้ 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 [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'

นอกจากนี้เพื่อเป็นการอ้างอิง

18:25:50-~/code/abc_wordpress$ git remote -v
production  [email protected]:abc_wordpress.git (fetch)
production  [email protected]:abc_wordpress.git (push)

และนี่ก็เช่นกัน...

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

เกิดอะไรขึ้น?


person Fridiculous    schedule 04.12.2012    source แหล่งที่มา
comment
นอกจากนี้ คุณเพิ่งโพสต์ข้อมูลรับรองฐานข้อมูลของคุณบนฟอรัมสาธารณะ คุณควรจะหมุนเวียนสิ่งเหล่านั้นก่อนที่จะมีคนทำสิ่งที่ใจร้าย   -  person willglynn    schedule 04.12.2012
comment
ขอบคุณ ฐานข้อมูลและ URL เป็นชื่อจำลองและไม่มีอยู่จริง อย่างไรก็ตาม ฉันขอขอบคุณคำแนะนำนี้   -  person Fridiculous    schedule 04.12.2012


คำตอบ (1)


ฉันเดาว่าคุณพลาดขั้นตอนที่คุณย้ายแอปพลิเคชันออกจาก wordpress/ และไปที่รูทของที่เก็บ git กล่าวอีกนัยหนึ่ง git ls-files ควรแสดง index.php ไม่ใช่ wordpress/index.php

PHP buildpack ต้องใช้ index.php ในรูทตามลำดับ เพื่อตรวจจับ repo ของคุณเป็นแอปพลิเคชัน PHP

person willglynn    schedule 04.12.2012
comment
ฉันแก้ไขคำตอบด้วยการทำซ้ำขั้นตอนต่างๆ และฉันเชื่อว่านี่อาจเป็นส่วนหนึ่งของมัน - person Fridiculous; 04.12.2012