Node app with Python module in project on Heroku not installing

前端 未结 1 1543
执念已碎
执念已碎 2021-01-15 15:09

I have a Node (Express server) project deployed to Heroku which runs fine, but I have a small Python module I wrote that doesn\'t need a server or new Heroku instance, but i

相关标签:
1条回答
  • 2021-01-15 15:46

    You need multiple buildpacksfor your app.

    Run the following:

    heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi

    Then, add the following in a file called .buildpacks in your project's root directory:

    https://github.com/heroku/heroku-buildpack-python.git
    https://github.com/heroku/heroku-buildpack-nodejs.git
    

    Alternatively, you can use heroku toolbelt commands (heroku buildpacks:set and heroku buildpacks:add) to configure your multiple buildpacks, as described here.

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