新規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

.gitignore