Skip to content

Instantly share code, notes, and snippets.

@sugumura
Last active April 27, 2018 10:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sugumura/469a3ec45ff301add05f678874d4efac to your computer and use it in GitHub Desktop.
Save sugumura/469a3ec45ff301add05f678874d4efac to your computer and use it in GitHub Desktop.
Start Ruby on Rails.
$ mkdir {your_app}
$ bundle init
$ vim Gemfile

# enable rails gem and edit version
gem "rails", '5.2.0'


$ bundle install --path=vendor/bundle --jobs=4
$ bundle exec rails new --skip-bundle -d [mysql|postgresql] --skip-turbolinks .
$ bundle exec rails new ---api -skip-bundle -d [mysql|postgresql] --skip-turbolinks .

# overwrite exists Gemfile Yes

$ bundle install --path=vendor/bundle --jobs=4

# start rails
$ ./bin/rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment