Why does Heroku fail to detect Node.js buildpack?

前端 未结 7 888
慢半拍i
慢半拍i 2020-12-14 16:18

I git cloned a Node.js application (the version specified in the package.json being 4.1.2 and that of my local machine being 6.2.2) an

7条回答
  •  抹茶落季
    2020-12-14 16:53

    It’s because Heroku thinks you are deploying a Node app. But what you are deploying is the public directory of a Node app, not Node code.

    Heroku uses buildpacks to select how the ap is handled. You want to clear that Node association:

    buildpacks:clear # clear all buildpacks set on the app

    Which means that “Next release will detect buildpack normally.”, that should solve it for you.

    ref: https://devcenter.heroku.com/articles/buildpacks

提交回复
热议问题