“sqlite3.h” missing when pushing Rails app to Heroku

后端 未结 5 1257
有刺的猬
有刺的猬 2020-12-24 14:38

I\'m following this tutorial, but it fails when I try to push to Heroku. It seems \"sqlite3.h\" is missing. I\'m new to development so I\'m not sure what information will

5条回答
  •  天涯浪人
    2020-12-24 14:52

    Yes, as these answers suggest, most of the time you will want to avoid using SQLite in production due to the constraints of the Heroku platform. However, you may have a perfectly acceptable use case (ex. read-only config) for using SQLite anyway. My recommendation is to:

    1. Add the heroku-buildpack-apt buildpack

    2. Add to your Aptfile:

      libsqlite3-dev
      libsqlite3-0
      

提交回复
热议问题