【发布时间】:2020-10-13 09:24:00
【问题描述】:
我在 Node.js 上完成了一个项目,已经推送到 GitHub,这个项目有一个大于 100MB 的视频,需要 Git LFS。 Git LFS 成功推入 GitHub 一点问题都没有。
这个项目的第二阶段是在 Heroku 中托管,这就是我卡住的地方。我都试过了:
heroku buildpacks:add https://github.com/BureauxLocaux/heroku-buildpack-git-lfs.git
和
heroku buildpacks:add (name of the app given by heroku)/heroku-buildpack-git-lfs
当它被推送时
git push heroku master --no-verify
我收到以下错误:
remote: -----> Git LFS app detected
remote: Env var BL_BUILDPACK_GIT_LFS_REPO is not set
remote: ! Push rejected, failed to compile Git LFS app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to intense-journey-80070.
remote:
To https://git.heroku.com/intense-journey-89070.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/intense-journey-89070.git'
我怎样才能做到这一点?
【问题讨论】:
标签: node.js github heroku git-lfs