如何调试我的失败,将我的Perloku应用程序推送到Heroku?
问题描述:
我正在尝试使用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'
答
不幸的是,这个错误可能有很多原因。这里有几个猜测:
- 你是否从右分支推? Heroku在'master'分支中查找代码。从"Heroku Dev Center | Deploying With Git":
“分行被推到Heroku的比其他高手将被忽略...如果你工作了另一个分支的本地 ,您可以合并 主推之前,或指定要到本地 分支推到远程主要推比主其他分支,使用 这句法:
$混帐推的Heroku yourbranch:大师”
- 是否所有必需的文件提交到您的git帝宝? Getting Started articles上的每种语言和框架对在heroku上部署它们都有一定的要求。例如,Ruby需要gemfile和config.ru或Procfile。 Python需要Procfile和requirements.txt。如果您缺少任何所需文件,Heroku将无法检测到有效的雪松应用程序。
+0
我真的放弃了这一点 - 它没有解决。 – Eric 2012-07-06 13:15:30
答
我也遇到过这个问题,我终于解决了。这可能是因为你在Windows上运行。该脚本需要更改为可执行文件。
请检查等等都经历过这样的症状https://github.com/judofyr/perloku/issues/6
其他。例如,http://stackoverflow.com/questions/8361475/heroku-push-rejected-no-cedar-supported-app-detected – pilcrow 2012-03-25 18:28:53