A simple comic viewer for Dilbert by Scott Adams, hosted on Heroku here. It uses the Heroku PostgreSQL addon for caching.
-
Install
pre-commit
and set it up for Git pre-commit hooks:pip install pre-commit pre-commit install
-
Run the script
cache_init.sql
at the beginning to create the required tables in the cache:heroku pg:psql -a dilbert-viewer -f cache_init.sql
-
[Optional] Test the viewer locally:
DATABASE_URL=$(heroku config:get DATABASE_URL -a dilbert-viewer) heroku local web