Your Ruby version is 2.3.1, but your Gemfile specified 2.3.1 (same version) -
so ran following problem:
your ruby version 2.3.1, gemfile specified 2.3.1
says heroku when deployed app. error should happen when have mismatch current ruby version , gemfile's ruby version.
you can see code here
here's build output:
remote: -----> ruby app detected remote: -----> compiling ruby/rails remote: -----> using ruby version: ruby-2.3.1 remote: -----> installing dependencies using bundler 1.11.2 remote: ruby version change detected. clearing bundler cache. remote: old: ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux] remote: new: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] remote: running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: warning: running version of bundler older version created lockfile. suggest upgrade latest version of bundler running `gem install bundler`. remote: ruby version 2.3.1, gemfile specified 2.3.1 remote: bundler output: warning: running version of bundler older version created lockfile. suggest upgrade latest version of bundler running `gem install bundler`. remote: ruby version 2.3.1, gemfile specified 2.3.1 remote: ! remote: ! failed install gems via bundler. remote: ! remote: ! push rejected, failed compile ruby app. remote: remote: ! push failed remote: verifying deploy.... remote: remote: ! push rejected chatisto. remote:
what's causing error?
woooooow, nasty fail. 😂
found problem:
i read ruby version out of .ruby-version
rbenv generates file when executing rbenv local 2.3.1
. file had break after version number. (fixed here)
i used code read it:
ruby_version_file = file.expand_path(".ruby-version", __dir__) ruby file.read(ruby_version_file)
while file.read(ruby_version_file)
returned "2.3.1\n"
... in heroku build log hard see.
Comments
Post a Comment