Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.
Tomas Fiers edited this page Jun 28, 2016 · 22 revisions

Welcome to the Filmograph wiki!

Links

Setup

To setup a new machine:

  1. Get Docker.
  2. Define the environment variables listed in docker-compose.yml.
  3. Run docker-compose up -d.

Testing

Run py.test.

Migrations

If you altered the models in data_model.py, the database schema will also need to be altered to reflect this. Whenever you commit such changes, including an Alembic migration script in your commit will ensure that the database schema is always in sync with the models in the source code.

Generate the Alembic script:

alembic revision --autogenerate -m "Description of changes."

Alter the database to reflect the source code. Apply necessary Alembic scripts:

alembic upgrade head
Clone this wiki locally