Skip to content

Instantly share code, notes, and snippets.

@jacoyutorius
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save jacoyutorius/c3005ddc9553c07acdd8 to your computer and use it in GitHub Desktop.

Select an option

Save jacoyutorius/c3005ddc9553c07acdd8 to your computer and use it in GitHub Desktop.
Rails4.0から4.1に移行する。Rubyも2.0から2.1に上げる ref: http://qiita.com/jacoyutorius/items/1137129fb0242214cb99
$rake about
About your application's environment
Ruby version 2.0.0 (x86_64-darwin13.3.0)
RubyGems version 2.4.1
Rack version 1.5
Rails version 4.0.4
JavaScript Runtime therubyracer (V8)
~(省略)~
$ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin13.3.0]
bundle update
$rails -v
Rails 4.1.0
$ rake about
About your application's environment
Ruby version 2.1.2-p95 (x86_64-darwin13.0)
RubyGems version 2.2.2
Rack version 1.5
Rails version 4.1.0
JavaScript Runtime therubyracer (V8)
Active Record version 4.1.0
Action Pack version 4.1.0
Action View version 4.1.0
Action Mailer version 4.1.0
Active Support version 4.1.0
~(省略)~
$ rbenv versions
system
* 2.0.0-p481 (set by /Users/yuto-ogi/.rbenv/version)
2.1.2
rbenv install -list
Available versions:
~
2.0.0-rc1
2.0.0-rc2
2.1.0
2.1.0-dev
2.1.0-preview1
2.1.0-preview2
2.1.0-rc1
2.1.1
2.1.2
~
rbenv install 2.1.2
cd {Railsアプリケーションの場所}
rbenv local 2.1.2
cat .ruby-version
2.1.2
# local in ~/Work/rails_app on git:rails4.1 x [16:02:56]
$ cd ../
# local in ~/Work [16:02:58]
$ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin13.3.0]
# local in ~/Work [16:03:01]
$ cd rails_app
# local in ~/Work/rails_app on git:rails4.1 x [16:03:09]
$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
rbenv glocal {Rubyバージョン}
ruby "2.1.2"
gem 'rails', '4.1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment