syvwlch / Metroscope

Experiments with automatic scansion.
MIT License
1 stars 0 forks source link

Ready for postgres database on Heroku #105

Closed syvwlch closed 5 years ago

syvwlch commented 5 years ago

I've provisioned the free hobby tier of the postgres add-on in Heroku. That should set the proper environment variable automatically in those environments, and Flask-SQLAlchemy should just start using that persistent database.

I've also implemented a new deploy CLI command which runs the database migrations and injects the sample meters, poets, and poems if they're not already in the database... without having to use the /reset route, which has been changed to do the same thing (instead of using db.create_all().

This fixes #103.