Heroku Push被拒绝 - 未检测到Cedar支持的应用程序

时间:2013-08-09 16:27:52

标签: java git heroku playframework playframework-2.0

我用Play Framework制作了一个新项目我似乎无法将其推向Heroku。我使用以下代码创建了heroku应用程序,因为我也在使用Maven。

heroku create -s cedar --buildpack https://github.com/heroku/heroku-buildpack-play.git

from this thread。 AFAIK我有我需要的所有文件。我在conf /

中有application.conf
Counting objects: 35, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (29/29), done.
Writing objects: 100% (35/35), 94.25 KiB | 0 bytes/s, done.
Total 35 (delta 0), reused 0 (delta 0)

-----> Fetching custom git buildpack... done

 !     Push rejected, no Cedar-supported app detected

To git@heroku.com:peaceful-depths-9995.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:peaceful-depths-9995.git'

正在提交的文件:

[master (root-commit) d975f1a] Init
 21 files changed, 8682 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 Procfile
 create mode 100644 README
 create mode 100644 app/controllers/Application.java
 create mode 100644 app/views/index.scala.html
 create mode 100644 app/views/main.scala.html
 create mode 100644 conf/application.conf
 create mode 100644 conf/routes
 create mode 100644 pom.xml
 create mode 100644 project/Build.scala
 create mode 100644 project/build.properties
 create mode 100644 project/plugins.sbt
 create mode 100644 public/css/bootstrap.css
 create mode 100644 public/css/bootstrap.min.css
 create mode 100644 public/images/favicon.png
 create mode 100644 public/javascripts/jquery-1.9.0.min.js
 create mode 100644 public/js/bootstrap.js
 create mode 100644 public/js/bootstrap.min.js
 create mode 100644 public/stylesheets/main.css
 create mode 100644 test/ApplicationTest.java
 create mode 100644 test/IntegrationTest.java

有什么理由让它通过?感谢

1 个答案:

答案 0 :(得分:5)

您正在使用Play 1 Heroku buildpack。 Play Framework 2+应用程序需要https://github.com/heroku/heroku-buildpack-scala.git buildpack。