【问题标题】:How can I debug my failure to push my Perloku app to Heroku?如何调试将 Perloku 应用程序推送到 Heroku 的失败?
【发布时间】:2012-04-08 12:27:30
【问题描述】:

我正在尝试使用 Heroku for Perl,但这个问题并不是 Perl 特有的。

[root@myhost MyApp-Perl]# git push heroku master
Pushing to git@heroku.com: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 git@heroku.com:MyApp-perl.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:MyApp-perl.git'

【问题讨论】:

标签: perl git heroku github


【解决方案1】:

很遗憾,导致此错误的原因可能有很多。以下是一些猜测:

  1. 您是从正确的分支推动吗? Heroku 在 'master' 分支中查找代码。来自"Heroku Dev Center | Deploying With Git"

    “推送到 Heroku 而非 master 的分支将被忽略...如果 你在本地另一个分支工作,你可以合并到 推送之前的master,或者指定你要推送你的本地 分支到远程主机。要推送除 master 以外的分支,请使用 这个语法:

    $ git push heroku yourbranch:master"

  2. 是否已将所有必需的文件提交到您的 git depo 中? Getting Started articles 上的每种语言和框架对于在 heroku 上部署它们都有一定的要求。例如,Ruby 需要 gemfile 和 config.ru 或 Procfile。 Python 需要一个 Procfile 和一个 requirements.txt。如果您缺少任何必需的文件,heroku 将无法检测到有效的 cedar 应用程序。
看起来您使用的是Perloku?如果是这样,你的 git depo 中有 Makefile.PL 吗?你有一个名为“Perloku”的可执行文件吗?您使用的是什么自定义 buildpack?

【讨论】:

    【解决方案2】:

    我也遇到了这个问题,终于解决了。这可能是因为您在 Windows 上运行。脚本需要改为可执行。

    请查看https://github.com/judofyr/perloku/issues/6

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-01
      • 2017-01-25
      相关资源
      最近更新 更多