【问题标题】:Push play2 yeoman app to Heroku将 play2 yeoman 应用推送到 Heroku
【发布时间】:2014-03-21 22:17:53
【问题描述】:

试图将 play2-yeoman 推送到 heroku。 正如here 所讨论的那样,我做了以下

  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/ | 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'

【问题讨论】:

    标签: heroku playframework-2.0 yeoman


    【解决方案1】:

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

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

    【讨论】:

    • 嘿,首先谢谢你。添加了有关该问题的更多信息。你以前见过这个吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-04-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-30
    • 2011-02-26
    • 1970-01-01
    相关资源
    最近更新 更多