部署在Heroku错误播放框架上

部署在Heroku错误播放框架上,heroku,playframework-2.2,Heroku,Playframework 2.2,我有一个问题 我在play框架中有一个应用程序 我正在使用play 2.2。我的代码是github,当我发送命令“git push heroku master”时,我遇到了以下问题: Initializing repository, done. Counting objects: 574, done. Delta compression using up to 4 threads. Compressing objects: 100% (512/512), done. Writing ob

我有一个问题

我在play框架中有一个应用程序

我正在使用play 2.2。我的代码是github,当我发送命令“git push heroku master”时,我遇到了以下问题:

    Initializing repository, done.
Counting objects: 574, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (512/512), done.
Writing objects: 100% (574/574), 1.45 MiB | 315 KiB/s, done.
Total 574 (delta 172), reused 0 (delta 0)

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

 !     Push rejected, no Cedar-supported app detected

To git@heroku.com:projetosplay.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:projetosplay.git'
我的github中有aplication.conf,我将我的项目设置为在heroku中使用play 2:

heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-scala.git
我认为是我键入的命令总是给我相同的消息(示例):

然后我把:heroku打开——app.git,这是工作

有人有一个想法吗


谢谢

您可能忘记创建
程序文件了吗?您需要包含以下内容的文件:

web: play run --http.port=$PORT $PLAY_OPTS

您的
application.conf
是否在
conf
目录中?你的目录结构是什么样子的?是的!在conf目录中:-)但是我的play是2.2,我认为在使用1.x时需要procfile。我很确定play 2.x应用程序也需要procfile
web: play run --http.port=$PORT $PLAY_OPTS