2014-03-25 34 views
1

我寫了一個基本的網站作爲例子在玩! 2框架。我跟着部署指令即創建登錄,鑰匙,git倉庫等 當我發出命令玩! 2在Heroku上的框架部署版本錯誤

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 [email protected]:radiant-tor-3278.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:radiant-tor-3278.git' 

爲什麼會檢測老戲版本時我在玩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") 
+0

你可以加入你的'build.sbt'嗎?此外,這可能會有所幫助 - http://stackoverflow.com/questions/12369967/play-framework-2-read-the-application-version-defined-in-build-scala –

+0

和播放2.x不使用' dependencies.yml'。也許你正在使用1.x版本的一些東西? –

回答

1

如果您使用的播放框架2.X然後取出conf/dependencies.yml文件,提交,並重新推。如果您使用的播放的1.x然後按照播放的1.x中的說明:https://devcenter.heroku.com/articles/play-support

+0

我曾經讓它在SO上看過一些條目。刪除它。 –