Try and tuck away more files
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
0
scripts/__init__.py
Normal file
0
scripts/__init__.py
Normal file
9
scripts/celworker.py
Normal file
9
scripts/celworker.py
Normal 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
8
scripts/wsgi.py
Normal 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)
|
Reference in New Issue
Block a user