Skip to content

Database Configuration

Max Bo edited this page May 10, 2017 · 1 revision

After spooling up a Postgres database, hopefully with Docker, the following commands may be of assistance

  • Configure: psql -h localhost -p 5432 --username=postgres
  • Halt: docker stop suq_db
  • Restart: docker restart suq_db
  • Delete: docker rm suq_db

If for some reason, the database isn't working on Heroku, the following might help:

  • Go up a terminal, and navigate to where suq is located
  • Run heroku run python
  • > from app import db
  • > db.create_all()
Clone this wiki locally