You need to freeze Ruby version in two files:
.ruby-version
2.2.2
This file created automatically if you type rbenv local 2.2.2 . The other file require to lock specific Ruby version is the following:
Gemfile
ruby '2.2.2'
...
Afterwards bundle install will fail in case of different Ruby version set as active.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.