Git Heroku推送在Mojolicous完整应用程序中被拒绝

Git Heroku推送在Mojolicous完整应用程序中被拒绝,git,perl,heroku,mojolicious,Git,Perl,Heroku,Mojolicious,我正在创建一个完整的Mojolicious 4.58应用程序,并尝试将其部署到Heroku mojo generate app MyApp 在应用程序的根目录中,根据,我添加了一个Makefile.PL #!/usr/bin/env perl use ExtUtils::MakeMaker; WriteMakefile( NAME => 'myapp.pl', VERSION => '0.01',

我正在创建一个完整的Mojolicious 4.58应用程序,并尝试将其部署到Heroku

mojo generate app MyApp
在应用程序的根目录中,根据,我添加了一个Makefile.PL

#!/usr/bin/env perl                          
use ExtUtils::MakeMaker;

WriteMakefile(
    NAME      => 'myapp.pl',
    VERSION   => '0.01',
    AUTHOR    => 'Shemahmforash',
    PREREQ_PM => { 'Mojolicious' => '4.58', }
);
和一个Perloku可执行文件

#!/bin/sh                                                                                                                                                                                   
/script/my_app daemon -l http://*:$PORT -m production
如果我尝试在我的机器中运行Perloku,它可以正常工作:

$ PORT=3000 ./Perloku
Server available at http://127.0.0.1:3000
尽管如此,如果我尝试遵循heroku部署过程,它会拒绝我的推送:

$ git init
 Initialized empty Git repository in /home/wanderer/Code/perl/mojolicious/heroku/my_app/.git/

$ git add .

$ git commit -m "my first commit"
[master (root-commit) dd91c47] my first commit
 10 files changed, 86 insertions(+)
 create mode 100644 Makefile.PL
 create mode 100755 Perloku
 create mode 100644 lib/MyApp.pm
 create mode 100644 lib/MyApp/Example.pm
 create mode 100644 log/production.log
 create mode 100644 public/index.html
 create mode 100755 script/my_app
 create mode 100644 t/basic.t
 create mode 100644 templates/example/welcome.html.ep
 create mode 100644 templates/layouts/default.html.ep

$ heroku create
 Creating floating-scrubland-3717... done, stack is cedar
 http://floating-scrubland-3717.herokuapp.com/ | git@heroku.com:floating-scrubland-3717.git
 Git remote heroku added

$ git push heroku master
 Enter passphrase for key '/home/wanderer/.ssh/id_rsa': 
 Counting objects: 21, done.
 Delta compression using up to 4 threads.
 Compressing objects: 100% (14/14), done.
 Writing objects: 100% (21/21), 2.44 KiB, done.
 Total 21 (delta 0), reused 0 (delta 0)


 !     Push rejected, no Cedar-supported app detected

 To git@heroku.com:floating-scrubland-3717.git
 ! [remote rejected] master -> master (pre-receive hook declined)
 error: failed to push some refs to 'git@heroku.com:floating-scrubland-3717.git'
请注意,如果我尝试使用mojolicious lite应用程序执行相同的过程,那么效果很好


感谢您的帮助。

您需要像这样创建Heroku实例

heroku create -s cedar --buildpack http://github.com/judofyr/perloku.git

我认为您需要像下面这样创建heroku实例
heroku create-s cedar-buildpackhttp://github.com/judofyr/perloku.git
现在它可以正常工作了!非常感谢你的帮助!我添加了我的评论作为回答,感谢您的回复