【问题标题】:Problem with Heroku buildpack stack 20 for Shiny AppHeroku buildpack stack 20 for Shiny App 的问题
【发布时间】:2021-08-09 13:09:46
【问题描述】:

我尝试在 Heroku 上发布 Shiny App,但 buildpack 出现问题(我使用了http://github.com/virtualstaticvoid/heroku-buildpack-r.git)。

我的 buildpack 正在使用堆栈 18,但 Heroku 需要堆栈 20。

你知道堆栈 20 或其他解决方案的 R Shiny buildpack 吗?我需要为 Shiny App 使用 Heroku CLI 吗?

以下来自 Heroku 的信息。

Building on the Heroku-20 stack
Using buildpack: http://github.com/virtualstaticvoid/heroku-buildpack-r.git
R Shiny app detected
This version of the heroku-buildpack-r is NO LONGER SUPPORTED!
See https://github.com/virtualstaticvoid/heroku-buildpack-r for details.
ERROR: This version of the buildpack is intended for use with the 'heroku-16' stack
Use the 'heroku stack:set' CLI command to use the 'heroku-16' stack.
See https://devcenter.heroku.com/articles/stack for more information.
Push rejected, failed to compile R Shiny app.
Push failed

【问题讨论】:

    标签: r heroku shiny heroku-cli


    【解决方案1】:

    https://devcenter.heroku.com/articles/stack

    Heroku-18 支持到 2023 年 4 月

    您可以使用以下命令将堆栈设置为 18:

    heroku stack:set heroku-18
    

    或者你等到你想使用的 buildpack 也支持 heroku-20。

    【讨论】:

    • 这是 Heroku CLI 命令“heroku stack:set heroku-18”?是否可以从 Heroku GUI 进行更改?
    • 没有 Heroku GUI。如果您指的是仪表板/网站,您只能升级堆栈,不能降级。要降级,您必须使用 Heroku CLI 或在 app.json 中定义堆栈,请参阅 devcenter.heroku.com/articles/app-json-schema
    猜你喜欢
    • 2020-11-07
    • 2020-11-03
    • 2018-06-28
    • 1970-01-01
    • 2017-09-16
    • 1970-01-01
    • 2020-02-20
    • 1970-01-01
    相关资源
    最近更新 更多