Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.