diff options
author | 2018-04-08 01:13:55 +0100 | |
---|---|---|
committer | 2018-04-08 01:13:55 +0100 | |
commit | cf983a363514cb0d5c19c12ab942c0795b286682 (patch) | |
tree | b7340336c6e3cc113ee36c7f924912ef58b9e732 | |
parent | Fix build (diff) |
Fix build for real
-rw-r--r-- | app_test.py | 3 | ||||
-rw-r--r-- | gunicorn_config.py | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/app_test.py b/app_test.py index 5747dbd6..5bb84945 100644 --- a/app_test.py +++ b/app_test.py @@ -5,8 +5,11 @@ from flask import Blueprint from flask_testing import TestCase from app import manager +from gunicorn_config import when_ready from pysite.constants import DISCORD_OAUTH_REDIRECT, DISCORD_OAUTH_AUTHORIZED +when_ready() + manager.app.tests_blueprint = Blueprint("tests", __name__) manager.load_views(manager.app.tests_blueprint, "pysite/views/tests") manager.app.register_blueprint(manager.app.tests_blueprint) diff --git a/gunicorn_config.py b/gunicorn_config.py index eb2f6e1b..f863edd4 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -15,7 +15,3 @@ def when_ready(server=None): created = db.create_tables() output(f"Created {created} tables.") - - -if __name__ == "__main__": - when_ready() |