Dan*_*hoe 4 sqlite postgresql heroku ruby-on-rails-3
对于Rails 3.1应用程序,我想使用SQLite在本地开发并部署到Heroku(需要PostgreSQL).
我已经设置了我的gemfile
group :development, :test do gem 'sqlite3' end
我可以成功推送到Heroku,但应用失败了
"Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.)"
如果我将pg gem添加到我的Gemfile并运行bundle install,我得到:
"ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /opt/local/bin/ruby extconf.rb checking for pg_config . . . not found"
因为我没有在本地安装PostgreSQL.
我不想在本地安装PostgreSQL.
有没有办法部署到Heroku而无需在本地安装PostgreSQL?