我真的很纠结Heroku的问题。我是一个新手,我已经尝试了一些解决方案,他们似乎没有帮助我。以下是错误我得到的宝石文件中使用heroku无法使用rails应用程序
group :development, :test do
gem 'sqlite3'
end
这是进入我有sqlite的3
Gem files will remain installed in /tmp/build_2i8tok6rv3gyk/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.7 for inspection.
Results logged to /tmp/build_2i8tok6rv3gyk/vendor/bundle/ruby/2.0.0/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.
!
! Detected sqlite3 gem which is not supported on Heroku.
! https://devcenter.heroku.com/articles/sqlite3
!
! Push rejected, failed to compile Ruby/Rails app
To [email protected]:glacial-wildwood-5205.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:glacial-wildwood-5205.git'
我该如何删除sqlite3并添加postgresql? – Aravind
已更新的答案。 – sunny1304
'Gem文件将保留安装在/home/aravind/.bundler/tmp/15662/gems/pg-0.12.2中进行检查。 记录到/home/aravind/.bundler/tmp/15662/gems/pg-0.12.2/ext/gem_make.out的结果 安装pg(0.12.2)时发生错误,并且Bundler无法继续。 确保'gem install pg -v'0.12.2''成功捆绑之前' 这是当我按照你说的去做的错误。请帮忙。 – Aravind