Heroku wrongly detecting my Node app as a Ruby app

后端 未结 2 944
无人及你
无人及你 2020-12-14 11:10

I have a Node project that is using Bundler and Guard to handle my pre-compilations steps. This means that I have a Gemfile in the root of my project along with the package.

相关标签:
2条回答
  • 2020-12-14 11:48

    It seems there's a new way to do this as BUILDPACK_URL is now deprecated, explained here, but essentially the command is:

    $ heroku buildpacks:set heroku/nodejs

    You may also specify a buildpack during app creation:

    $ heroku create myapp --buildpack heroku/nodejs

    0 讨论(0)
  • 2020-12-14 11:58

    The solution to this, with a lot of help from Heroku Support is: use a build pack!

    Override the Heroku default buildpacks by specifying a custom buildpack in the BUILDPACK_URL config var

    $ heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs
    

    You can also specify a buildpack during app creation

    $ heroku create -s cedar --buildpack https://github.com/heroku/heroku-buildpack-nodejs
    

    Simple when you know it. Some more documentation can be found at Heroku Dev Center

    0 讨论(0)
提交回复
热议问题