LoginSignup
0
0

More than 3 years have passed since last update.

Rails newまでまとめてみた

Last updated at Posted at 2021-03-08

アウトプット兼ねてまとめてみました。
*アドバイス訂正などありましたらご指摘お願いいたします。

ステップ1

mkdir xxx

でフォルダー作ってそこに移動

ステップ2

gem install rails 
↓
rbenv exec gem install bundler

rbenv execはrbenvでインストールしたrubyを使ってbindlerを入れるらしい。

ステップ3

rails new プロジェクト名 -d mysql

作成したプロジェクトに移動

bundle install --path vendor/bundleが非推奨になった↓を代わりにやる


bundle config set --local path 'vendor/bundle'

$bundle configコマンドで確認できます。
https://qiita.com/devzooiiooz/items/8babd82f780f01812f9d

二回目以降はbundle installのみでOK

bundle configのglobalとlocalの違い

--global は設定を ~/.bundle/config に保存する。
--local は設定を application_name/.bundle/config に保存する。

ステップ4

bundle exec rails s
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