Skip to content

Instantly share code, notes, and snippets.

@jamesadney
Last active December 18, 2015 03:29
Show Gist options
  • Save jamesadney/5719052 to your computer and use it in GitHub Desktop.
Save jamesadney/5719052 to your computer and use it in GitHub Desktop.
  1. use rails --database=postgresql myapp to create app

  2. create postgres role that you want to use

  3. in .env set PGUSER and PGPASSWORD env vars

  4. set up database.yml without username or password for test and devel.

  5. use foreman

  6. create database: foreman run rake db:create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment