2014-03-13 40 views
1

試圖將play2-yeoman推送至heroku。 作爲討論here,我做了以下將play2 yeoman應用推送至Heroku

  1. 的Heroku創建--buildpack https://github.com/47deg/heroku-buildpack-scala.git

我看到下面的

Creating frozen-springs-5883... done, stack is cedar 
BUILDPACK_URL=https://github.com/47deg/heroku-buildpack-scala.git 
http://frozen-springs-5883.herokuapp.com/ | [email protected]:frozen-springs-5883.git 

我看着分叉buildpack,它使用一個叫做變量$ {UI_FILES},所以我補充說,以heroku配置使用

heroku config:set UI_FILES=ui 

然而,當我試圖把我收到以下錯誤消息

Initializing repository, done. 
Counting objects: 889, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (367/367), done. 
Writing objects: 100% (889/889), 1.24 MiB | 2.17 MiB/s, done. 
Total 889 (delta 312), reused 845 (delta 294) 

-----> Fetching custom git buildpack... done 

!  Push rejected, no Cedar-supported app detected 

To [email protected]:frozen-springs-5883.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:frozen-springs-5883.git' 

回答

1

Heroku's devcenter,您可以強制的Heroku通過執行以下命令,使用該播放2 buildpack建:

heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-scala.git 
+0

嘿,首先謝謝你。增加了有關該問題的更多信息。你以前見過這個嗎? – smk

+0

不客氣。我從來沒有見過這個問題。 – Peter