aboutsummaryrefslogtreecommitdiffstats
path: root/gunicorn_config.py (follow)
Commit message (Collapse)AuthorAgeLines
* Initial data for tables and refactoring the dev-mode database handling to be ↵Gravatar Leon Sandøy2018-04-15-1/+11
| | | | | | | | | | similar to prod-mode. (#53) * Changed the dev-mode logic to be the same as prod for creating new tables if they don't exist. Also added a new feature where a table can be initialized with data if you create a JSON file in the pysite/database/table_init/ folder and fill it with a list of dicts where each dict represents a row in your table. Included a hiphoppers json so that I can actually test if it works in production. It will only init the table if the table is empty. * Not sure if this will solve it, but I think so. * Renamed the tables and primary keys, and alphabetized the dict. Now complies with the gdudes holy wishes.
* Fix build for realGravatar Gareth Coles2018-04-08-4/+0
|
* Fix buildGravatar Gareth Coles2018-04-08-3/+12
|
* Fix logging in gunicorn_configGravatar Gareth Coles2018-04-07-3/+3
|
* Don't create tables on route load by default.Gravatar Gareth Coles2018-04-07-0/+12
| | | | | * If "FLASK_DEBUG" is in your env vars, tables will be created on route load * If you run a query against a table not declared in database.py, a warning is emitted
* removes gunicorn config as it is no longer being used (#39)Gravatar Christopher Baklid2018-03-07-46/+0
|
* update gunicorn_config (#2)Gravatar Christopher Baklid2018-02-07-29/+31
| | | | | * update gunicorn_config this changes the initialisation step of the database to use the environment variables
* last fixGravatar Christopher Baklid2018-02-06-1/+1
|
* minor fixesGravatar Christopher Baklid2018-02-06-6/+6
|
* adds gunicorn server_ready hook to set up databaseGravatar Christopher Baklid2018-02-06-0/+44