Skip to content

Instantly share code, notes, and snippets.

@Epigene
Last active October 15, 2015 09:04
Show Gist options
  • Save Epigene/a98a60781c5a9b1d76a5 to your computer and use it in GitHub Desktop.
Save Epigene/a98a60781c5a9b1d76a5 to your computer and use it in GitHub Desktop.
How to init a new Rails 4.2 app in mid-2015

Replace <project> with myapp and you are good to go.

# Make new gemset of latest ruby found at https://www.ruby-lang.org/en/downloads/
$ rvm install 2.2.2
$ rvm use 2.2.2@<project> --create
$ gem install bundler
$ gem install rails

# Init rails app
$ mkdir <project>
$ cd <project>
$ git init
$ rails new . --git --database=postgresql --skip-bundle --skip-test-unit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment