部署Heroku错误Play Framework

时间:2014-06-18 20:00:57

标签: heroku playframework-2.2

我有一个问题。

我在播放框架中有一个应用程序。

我正在使用游戏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

我认为stange是我输入的命令总是给我相同的信息(例子):

heroku open
 !    No app specified.
 !    Run this command from an app folder or specify which app to use with --app APP.

然后我把:heroku打开--app .git并且正在工作。

任何人都有一个想法?

谢谢!!!

1 个答案:

答案 0 :(得分:0)

您是否忘记创建procfile?你需要这样一个文件,例如以下内容:

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