ruby on rails - Gemfile ROR version and local machine ROR version mismatch -
i complete beginner ror , heroku. trying create app git bitbucket , gemfile version (2.2.3) different ruby on rails version of 2.3.1.
what steps can take ensure gemfile can changed?
this mismatch in gemfile caused "git push heroku master" fail following errors.
an error occurred while installing mime-types (3.0), , bundler cannot remote:continue.
thank much! (:
ruby 2.3 kind of cool - stuff safe navigation operator, recommend installing it, if don't want -
in either gemfile or .ruby-version
file, you'll have line says ruby 2.3.1
. temporarily change installed version, 2.2.3.
the run bundle
, or perhaps bundle --without production
if want skip gems marked belonging production
group only. example, if don't have postgres installed locally.
then switch gemfile or .ruby-version
2.3.1. commit , try , push.
what accomplish? keeps ruby version pinned @ 2.3 heroku, installs gemfile.lock
using installed version. heroku requires gemfile.lock
development gems only, far i'm aware.
by way, i'm assuming you're using ruby version 2.2.3 , not rails version. current rails version 4.x.x or 5.x.x. run rails 2.x.x, you'll need downgrade ruby 1.8.7 or something.
Comments
Post a Comment