玩! heroku上的2框架部署版本错误

时间:2014-03-25 05:03:46

标签: git heroku playframework playframework-2.0

我已经写了一个基本网站作为游戏的例子! 2框架。我按照部署说明进行操作,即创建登录,密钥,git存储库等。 当我发出命令

 git push heroku master

我收到以下错误:

 git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the list of known hosts.
Enter passphrase for key '/home/nimish/.ssh/id_rsa': 
Initializing repository, done.
Counting objects: 57, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (57/57), 41.02 KiB, done.
Total 57 (delta 8), reused 0 (delta 0)

-----> Play! app detected
-----> Installing OpenJDK 1.6...done
-----> WARNING: Play! version not specified in dependencies.yml. Default version: 1.2.7 being used....
-----> Installing Play! 1.2.7.....
-----> done
-----> Installing ivysettings.xml..... done
-----> Building Play! application...
       ~        _            _ 
       ~  _ __ | | __ _ _  _| |
       ~ | '_ \| |/ _' | || |_|
       ~ |  __/|_|\____|\__ (_)
       ~ |_|            |__/   
       ~
       ~ play! 1.2.7, http://www.playframework.org
       ~
       1.2.7
       Building Play! application at directory ./
       Resolving dependencies: .play/play dependencies ./ --forProd --forceCopy --silent -Duser.home=/tmp/build_653a40ef-01d5-46fa-9c7f-67f2b3e7a591 2>&1
       ~ !! /tmp/build_653a40ef-01d5-46fa-9c7f-67f2b3e7a591/conf/dependencies.yml does not exist
 !     Failed to build Play! application
 !     Cleared Play! framework from cache

 !     Push rejected, failed to compile Play! app

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

为什么我在玩游戏时会检测到旧游戏版本。这是我的插件.bt -

/ Comment to get more information during initialization
logLevel := Level.Warn

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

//Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")

2 个答案:

答案 0 :(得分:1)

如果您使用的是Play Framework 2.x,请删除conf/dependencies.yml文件,提交并重新推送。如果您使用的是Play 1.x,请按照播放1.x的说明进行操作:https://devcenter.heroku.com/articles/play-support

答案 1 :(得分:0)

詹姆斯·沃德从这个链接的解决方案工作 - Deploy a Play 2.0.2 application on Heroku 我的回购不是因为导致主要问题的git root。也改变了heroku配置。