2012-03-23 82 views
2

我正在嘗試使用Perl的Heroku,但這個問題不是特定於Perl。如何調試我的失敗,將我的Perloku應用程序推送到Heroku?

[[email protected] MyApp-Perl]# git push heroku master 
Pushing to [email protected]:MyApp-perl.git 
Counting objects: 17, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (12/12), done. 
Writing objects: 100% (17/17), 1.70 KiB, done. 
Total 17 (delta 2), reused 0 (delta 0) 

-----> Heroku receiving push 
-----> Fetching custom buildpack... done 
!  Heroku push rejected, no Cedar-supported app detected 

To [email protected]:MyApp-perl.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:MyApp-perl.git' 
+0

其他。例如,http://stackoverflow.com/questions/8361475/heroku-push-rejected-no-cedar-supported-app-detected – pilcrow 2012-03-25 18:28:53

回答

0

不幸的是,這個錯誤可能有很多原因。這裏有幾個猜測:

  1. 你是否從右分支推? Heroku在'master'分支中查找代碼。從"Heroku Dev Center | Deploying With Git"

    「分行被推到Heroku的比其他高手將被忽略...如果你工作了另一個分支的本地 ,您可以合併 主推之前,或指定要到本地 分支推到遠程主要推比主其他分支,使用 這句法:

    $混帳推的Heroku yourbranch:大師」

  2. 是否所有必需的文件提交到您的git帝寶? Getting Started articles上的每種語言和框架對在heroku上部署它們都有一定的要求。例如,Ruby需要gemfile和config.ru或Procfile。 Python需要Procfile和requirements.txt。如果您缺少任何所需文件,Heroku將無法檢測到有效的雪松應用程序。
看起來你正在使用 Perloku?如果是這樣,你的git depo中有Makefile.PL嗎?你有一個名爲'Perloku'的可執行文件嗎?你使用的是什麼定製buildpack?

+0

我真的放棄了這一點 - 它沒有解決。 – Eric 2012-07-06 13:15:30

相關問題