Last active
October 20, 2019 16:37
-
-
Save ryamakuchi/8d10b405cac151f62b33c71286b8d6ab to your computer and use it in GitHub Desktop.
最新の Ruby と Rails をインストールして Rails プロジェクトを作成する ref: https://qiita.com/rry/items/12d794437cde733f8ece
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ruby-buid を更新する | |
$ brew update && brew upgrade ruby-build | |
# `rbenv install -l` を実行して最新の Ruby バージョンが出てくるのを確認 | |
$ rbenv install -l | |
# 最新バージョンの Ruby をインストール (2018/11/09 時点) | |
$ rbenv install 2.5.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 実行するディレクトリの場所はどこでも可 | |
$ gem install rails |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rbenv exec gem install bundler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rails _5.2.1_ new [project name] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bundle exec rails generate rspec:install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :development, :test do | |
gem 'rspec-rails' | |
gem 'factory_bot_rails' | |
gem 'rails-controller-testing' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment