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

后端 未结 5 1258
有刺的猬
有刺的猬 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

    What happened to me was, I was following along the Heroku tutorial and when I used git push heroku master it was pushing from my latest Git commit (obviously!)

    What I forgot was that in the eyes of Git, I was still using sqlite in the gemfile! Silly me!

    So I used git add . followed by a git commit -m "Changed to Postgres." so Git knew about these changes. Pushing after that worked fine for me.

提交回复
热议问题