Try and tuck away more files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy
2020-07-05 03:19:38 +02:00
parent e86f162b84
commit a98c854ff8
7 changed files with 5 additions and 3 deletions

0
scripts/__init__.py Normal file
View File

9
scripts/celworker.py Normal file
View File

@ -0,0 +1,9 @@
"""Bootstrap the application for Celery."""
from os import environ
from magic_app.app import celery, create_app # noqa
from magic_app.config import CONFIG
config = CONFIG[environ["FLASK_ENV"]]
app = create_app(config=config)
app.app_context().push()

8
scripts/wsgi.py Normal file
View File

@ -0,0 +1,8 @@
"""Bootstrap the application for web serving."""
import os
from magic_app.app import create_app
from magic_app.config import CONFIG
config = CONFIG[os.environ["FLASK_ENV"]]
app = create_app(config=config)