红宝石推入heroku失败

时间:2014-03-26 23:15:43

标签: ruby-on-rails ruby git heroku push

我正在尝试'git push heroku master'但是我正在接收:

安装sqlite3(1.3.9)时发生错误,Bundler无法继续。

因此,我被告知推送被拒绝,因为Ruby应用程序无法编译。

这是Gemfile:

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.4'

# Use sqlite3 as the database for Active Record
group :development, :test do
  gem 'sqlite3'
end

group :production do
  gem 'pg'
  gem 'rails_12factor'
end

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.2'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]

知道为什么出现这个错误?我一直有问题让这个工作在晚上的大部分时间里工作。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:1)

You cannot use sqlite on Heroku.

  

如果您从Gemfile中删除了gem的sqlite3行,并且在部署到Heroku时仍然出现错误,那么您使用的另一个gem可能是sqlite3作为依赖项。要帮助找到此依赖关系的源代码,请在Gemfile.lock中查找sql​​ite3。找到具有sqlite3作为依赖项的gem并将其从Gemfile中删除。完成此运行捆绑包安装后,确保Gemfile.lock中不再存在sqlite3。