Archived
This commit is contained in:
@@ -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()
|
||||
@@ -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