1
所以我跑進以下問題:你的Ruby版本是2.3.1,但你的Gemfile指定2.3.1(版本相同)
Your Ruby version is 2.3.1, but your Gemfile specified 2.3.1
Heroku上說,當我部署我的應用程序。只有當您與當前的ruby版本和您的Gemfile的ruby版本不匹配時纔會出現此錯誤。
你可以看到任何代碼here
這裏是生成輸出:
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: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Your Ruby version is 2.3.1, but your Gemfile specified 2.3.1
remote: Bundler Output: Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Your Ruby version is 2.3.1, but your Gemfile specified 2.3.1
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy....
remote:
remote: ! Push rejected to chatisto.
remote:
是什麼造成這個錯誤?