【发布时间】: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