我在本地使用 sqlite 开发了一个应用程序,但现在想将其移至 Heroku,所以我将从现在开始使用 postgres。到目前为止,我不需要保留数据库,我只需要 Heroku 不要尝试安装 Sqlite,因为它会像这样爆炸:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
我已经更改了我的 database.yml 文件并切换'gem' "sqlite3"
到'gem' "pg"
了我的 Gemfile,但 heroku 仍然很生气。还有什么需要改变的,所以当我提交我的应用程序时它不会尝试安装 sqlite3?