Skip to content

Instantly share code, notes, and snippets.

@ryanwi
Last active December 17, 2015 17:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanwi/5647653 to your computer and use it in GitHub Desktop.
Save ryanwi/5647653 to your computer and use it in GitHub Desktop.
Create new Rails app with gemset, using postgresql
$ rvm use --create 2.1@app_name
$ gem install rails --no-ri --no-rdoc
$ rails new app_name --database=postgresql
$ cd app_name/
$ rvm --rvmrc 2.1@app_name
$ git init
$ git add .
# setup db
$ rake db:drop db:create db:migrate db:seed
# other setup
$ rails generate rspec:install
$ rails generate devise:install
$ rails generate devise User
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment