LoginSignup
5
5

More than 5 years have passed since last update.

Railsのアップデート

Posted at

4.1.1から4.1.4にアップデートした時の作業ログ

作業用ブランチの作成

$ git checkout -b RailsUpdate

Rails以外のライブラリをアップデート&コミット

やらなくてもいいけど、この機会にあげられる奴はあげておく。

$ bundle update
$ git commit -a -m 'bundle update'

テストを流しておく

$ rspec

Railsのアップデート

$ vim Gemfile
-gem 'rails', '4.1.1'
+gem 'rails', '4.1.4'
$ git commit -a -m 'update rails version'
$ bundle update rails
$ git commit -a -m 'bundle update rails'

テスト

$ rspec

必要に応じて、手動でテスト。

マージ&後始末

$ git checkout master
$ git merge RailsUpdate
$ git branch -d RailsUpdate
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5