Ruby on rails ! Heroku push被拒绝,未能编译Ruby/rails应用程序

Ruby on rails ! Heroku push被拒绝,未能编译Ruby/rails应用程序,ruby-on-rails,Ruby On Rails,heroku使用postgresql,所以如果您计划部署到heroku,那么在开发时也应该使用它。在gem文件中,删除行gem'sqlite3',并将其替换为gem'pg'。您需要先安装pg服务器。如果您的系统配置了postgre,则可以更换 gem“sqlite3” 与 宝石“pg” 否则,添加 组:开发do gem“sqlite3”结束组:生产do gem“pg”结束 并运行bundle作为 捆绑安装--无需生产 然后推它。问题仍然存在,我的gem文件在这里,源代码“gem”rails、“3

heroku使用postgresql,所以如果您计划部署到heroku,那么在开发时也应该使用它。在gem文件中,删除行
gem'sqlite3'
,并将其替换为
gem'pg'
。您需要先安装pg服务器。

如果您的系统配置了postgre,则可以更换

gem“sqlite3”

宝石“pg”

否则,添加

组:开发do gem“sqlite3”结束组:生产do gem“pg”结束

并运行bundle作为

捆绑安装--无需生产


然后推它。

问题仍然存在,我的gem文件在这里,源代码“gem”rails、“3.2.11”gem“bootstrap sass”、“2.1”gem“bcrypt ruby”、“3.0.1”gem“jquery rails”、“2.0.2”group:development、:test do gem“sqlite3”、“1.3.5”gem“rspec rails”、“2.11.0”gem“guard rspec”、“1.2.1”gem“guard spork”、“1.2.0”gem“spork”,“0.9.2”终端组:gem“sass轨道”资产、“3.2.5”gem“咖啡轨道”、“3.2.2”gem“丑八怪”、“1.2.3”终端组:gem“pg”生产终端、“0.12.2”终端
   --with-opt-dir
   --without-opt-dir
   --with-opt-include
   --without-opt-include=${opt-dir}/include
   --with-opt-lib
   --without-opt-lib=${opt-dir}/lib
   --with-make-prog
   --without-make-prog
   --srcdir=.
   --curdir
   --ruby=/usr/local/bin/ruby
   --with-sqlite3-dir
   --without-sqlite3-dir
   --with-sqlite3-include
   --without-sqlite3-include=${sqlite3-dir}/include
   --with-sqlite3-lib
   --without-sqlite3-lib=${sqlite3-dir}/lib
   --enable-local
   --disable-local
   Gem files will remain installed in /tmp/build_3dsid22g5kvhv/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7 for inspection.
   Results logged to /tmp/build_3dsid22g5kvhv/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/ext/sqlite3/gem_make.out
   An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue.
   Make sure that `gem install sqlite3 -v '1.3.7'` succeeds before bundling.

 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app