新規Railsプロジェクトの作成手順のメモ
$ mkdir project_name $ cd project_name $ bundle init $ echo "gem 'rails'" >> Gemfile $ bundle install --path vendor/bundle --jobs=4 $ bundle exec rails new . -B -d mysql --skip-turbolinks --skip-test --api # -B: bundle installを行わないようにする # DB はmysqlを使用 # turbolinks オフ # minitestを使わない # API モード
参考
rails new
- The Rails Command Line — Ruby on Rails Guides
- rails newの手順を毎回忘れるので記録
- 新規Railsプロジェクトの作成手順まとめ
- Ruby on Rails 5のAPIモードと非APIモードのファイル差分
- Bundlerで並列処理??bundle installを爆速で処理する方法。