heroku - Gemfile error with bundle commands -
i collaborator on app, cloned, , runs fine on collaborator's computer. however, when type bundle exec or bundle install in heroku app's root directory, following error:
/users/jacob/furious-ocean-6331/gemfile:3:in `evaluate': undefined method `ruby' # <bundler::dsl:0x007fcda31048c0> (nomethoderror) /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.1.4/lib/bundler/dsl.rb:7:in `instance_eval' /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler1.1.4/lib/bundler/dsl.rb:7:in `evaluate' /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.1.4/lib/bundler/definition.rb:18:in `build' /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.1.4/lib/bundler.rb:135:in `definition' /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler1.1.4/lib/bundler/cli.rb:220:in `install' /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler1.1.4/lib/bundler/vendor/thor/task.rb:22:in `run' /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.1.4/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.1.4/lib/bundler/vendor/thor.rb:263:in `dispatch' /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.1.4/lib/bundler/vendor/thor/base.rb:386:in `start' /users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.1.4/bin/bundle:13:in `<top (required)>' /users/jacob/.rvm/gems/ruby-1.9.3-p194/bin/bundle:19:in `load' /users/jacob/.rvm/gems/ruby-1.9.3-p194/bin/bundle:19:in `<main>' /users/jacob/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval' /users/jacob/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>' there error in gemfile, , bundler cannot continue. here gemfile:
source 'https://rubygems.org' ruby '1.9.3' gem 'rails', '3.2.2' # bundle edge rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'nokogiri' gem 'bcrypt-ruby', :require => 'bcrypt' gem "json", "~> 1.7.3" # gems used assets , not required # in production environments default. group :assets gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' # see https://github.com/sstephenson/execjs#readme more supported runtimes # gem 'therubyracer' gem 'uglifier', '>= 1.0.3' end gem 'thin' gem "heroku" gem 'jquery-rails' group :development, :test gem 'sqlite3' end group :production gem 'pg' end # use activemodel has_secure_password # gem 'bcrypt-ruby', '~> 3.0.0' # use jbuilder templates json # gem 'jbuilder' # use unicorn app server # gem 'unicorn' # deploy capistrano # gem 'capistrano' # use debugger # gem 'ruby-debug19', :require => 'ruby-debug'
the ruby element have in gemfile works prerelease version of bundler, make sure do
gem install bundler --pre
to make sure you're running on prerelease version of bundler adds support specifying ruby version.
Comments
Post a Comment