将play2 yeoman应用程序推送到Heroku

时间:2014-03-13 20:51:37

标签: heroku playframework-2.0 yeoman

尝试将play2-yeoman推送到heroku。 正如here所述,我做了以下

  1. heroku create --buildpack https://github.com/47deg/heroku-buildpack-scala.git
  2. 我看到以下

    Creating frozen-springs-5883... done, stack is cedar
    BUILDPACK_URL=https://github.com/47deg/heroku-buildpack-scala.git
    http://frozen-springs-5883.herokuapp.com/ | git@heroku.com: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 git@heroku.com:frozen-springs-5883.git
     ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'git@heroku.com:frozen-springs-5883.git'
    

1 个答案:

答案 0 :(得分:1)

根据Heroku's devcenter,你可以通过执行以下命令强制heroku使用Play 2 buildpack进行构建:

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