Requirements - HearstAT/ensemble GitHub Wiki

Requirements

Base

  • Ruby - Version 2.3+
  • Database (Choose One):
    • Postgres (Recommended for Production; tested with 9.5 and 9.6)
    • sqlite (Recommended only for Testing/Development)

Optional

Installation Pre-Requisites

Ruby

There are several ways to install Ruby for each OS

Postgres

If wanting to use a dockerized postgres or using an external postges go ahead and skip to Ensemble Install

For basic Postgres commands go to https://www.postgresql.org/docs/9.6/static/tutorial-createdb.html

Windows

  • Install Options
  • Commands Below need to be confirmed
  • Manual Commands (Skip to Ensemble Install if wanting to use auto setup)
    • Check if Running: pg_ctl status
      • NOTE: the user you create will need to match what is in config/database.yml, default is railstest1/railstest
    • Useful Commands (For most Distros)
      • Start: pg_ctl start
      • Stop: pg_ctl stop
      • Restart: pg_ctl restart

OSX

To run development or production you will want to install Postgres in some way. A simple way to do this on a Mac is Homebrew.

  • Install Options
  • Manual Commands (Skip to Ensemble Install if waiting to use auto setup)
    • Create a User createuser -P -d -e railstest1
      • NOTE: the user you create will need to match what is in config/database.yml, default is railstest1/railstest
    • Useful Commands
      • Check if Running: ps auxwww | grep postgres
      • Brew Installed
        • Check Service List: brew services list
        • Restart: brew services restart postgresql
        • Start: brew services start postgresql

Linux

  • Install Options
  • Manual Commands (Skip to Ensemble Install if waiting to use auto setup)
    • Check if Running: ps ef | grep postgres
      • NOTE: the user you create will need to match what is in config/database.yml, default is railstest1/railstest
    • Useful Commands (For most Distros)
      • Start: sudo service postgresql start
      • Stop: sudo service postgresql stop
      • Restart: sudo service postgresql restart

SQLite

Recommended only for testing and development

Windows

OSX

SQLite that comes with OSX Should be sufficient

Linux

⚠️ **GitHub.com Fallback** ⚠️