0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

フォルダ単位でプロジェクトのRailsバージョンを管理する方法

0
Posted at
  1. mkdir プロジェクト名
  2. cd プロジェクト名ディレクトリ
  3. bundle init
  4. vi Gemfileにgem 'rails', "5.2.1"を追記 #5.2.1と書かれている所でバージョンを指定している
  5. bundle install --path vendor/bundle
  6. bundle exec rails new --database=mysql .  #最後の . は必ず書くこと
  7. Gemfile overwrite? ときかれたらyでエンター
  8. rails -vをしてみると、4.で指定したバージョンのRailsがインストール出来ていると確認できる。

以上。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?