! Heroku推送拒绝,无法编译Ruby / rails应用程序

时间:2013-02-04 07:38:18

标签: ruby-on-rails

   --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

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

如果您在系统中配置了postgre,则可以替换

  

gem“sqlite3”

  

gem“pg”

否则,添加

  

组:开发做宝石“sqlite3”结束组:生产做宝石“pg”结束

并运行bundle as

  

捆绑安装 - 没有生产

然后推它。