红宝石致命错误

时间:2014-03-26 21:32:28

标签: ruby-on-rails ruby shell heroku

当我尝试

时,我的Ruby和Rails命令行出现致命错误
bundle install --without production

为Heroku。

我按照此处的说明操作:http://installfest.railsbridge.org/installfest/create_and_deploy_a_rails_app

此步骤在7.2中。一切都很好,直到这个。

有人能指出我为什么会失败的正确方向吗?

它表示“group”中没有给出块(yield)(LocalJumpError)

由于

编辑: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
gem 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 :(得分:4)

Gemfile中,更改

gem group :development, :test do
  gem 'sqlite3'
end

group :development, :test do
  gem 'sqlite3'
end