【问题标题】:Play! 2 framework deployment version error on heroku玩! 2 heroku上的框架部署版本错误
【发布时间】:2014-03-25 05:03:45
【问题描述】:

我写了一个基本的网站作为游戏的例子! 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'

为什么我在玩 play 2 时检测到旧版本。这是我的 plugins.sbt --

/ 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")

【问题讨论】:

  • 你能加入你的build.sbt吗?此外,这可能会有所帮助 - stackoverflow.com/questions/12369967/…
  • 而 Play 2.x 不使用 dependencies.yml。也许你正在使用 1.x 版本的一些东西?

标签: git heroku playframework playframework-2.0


【解决方案1】:

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

【讨论】:

  • 我在 SO 上看到了一些条目。删除它。
【解决方案2】:

James Ward 来自此链接的解决方案有效—— Deploy a Play 2.0.2 application on Heroku 我的仓库不在导致主要问题的 git root 上。也更改了 heroku 配置。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-12-14
    • 2013-06-26
    • 2012-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-02
    • 2017-02-08
    相关资源
    最近更新 更多