尝试在Heroku上部署闪亮的Web应用程序时,该应用程序与buildpack不兼容

时间:2020-02-04 07:28:49

标签: r heroku shiny

我正在尝试使用此构建包将闪亮的Web应用程序部署在heroku上

http://github.com/virtualstaticvoid/heroku-buildpack-r.git#heroku-16

这是带有闪亮应用程序的github存储库:

https://github.com/EmmS21/SpringboardCapstoneBoxingPredictionWebApp

我有一个run.R文件: 库(发光)

port <- Sys.getenv('PORT')

shiny::runApp(
  appDir = getwd(),
  host = '0.0.0.0',
  port = as.numeric(port)
)

和init.R安装所有相关库:

my_packages = c("shinyWidgets","tidyverse","reticulate","DT","data.table")

install_if_missing = function(p) {
  if (p %in% rownames(installed.packages()) == FALSE) {
    install.packages(p, dependencies = TRUE)
  }
}

invisible(sapply(my_packages, install_if_missing))

和app.R

library(shiny)
library(shinyWidgets)
library(tidyverse)
library(reticulate)
library(DT)
library(data.table)
virtualenv_create(envname = "python_environment", python= "python3")
virtualenv_install("python_environment", packages =c('pandas','catboost'))
use_virtualenv("python_environment",required = TRUE)
...

所有文件路径中的mlmodel >>应用程序/装箱

我尝试部署我的应用,但收到错误消息:

-----> App not compatible with buildpack: http://github.com/virtualstaticvoid/heroku-buildpack-r.git#heroku-16
       More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
 !     Push failed

ml模型/ appboxing

0 个答案:

没有答案