我在使用 Heruku 时遇到了一些麻烦。由于以下错误,我无法推送:
Gem files will remain installed in /tmp/build_2jdec30lsc3bu/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.7 for inspection.
Results logged to /tmp/build_2jdec30lsc3bu/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
而我解决不了。
我尝试了以下方法:
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
而且我不断收到同样的错误。我什至试图完全删除 sqlite3。同样恼人的错误。我确保在运行之前推送我的更改git push heroku master
。有任何想法吗?或者我可能会放弃 Heroku ......