Files
flaskbb/celery_worker.py
T
sh4nks 71c5559436 Try to use the production config for celery
Fall back to using the default config
2016-09-16 19:35:59 +02:00

22 lines
600 B
Python

#!/usr/bin/env python
"""
flaskbb.celery_worker
~~~~~~~~~~~~~~~~~~~~~
Prepares the celery app for the celery worker.
To start celery, enter this in the console::
celery -A celery_worker.celery --loglevel=info worker
:copyright: (c) 2016 by the FlaskBB Team.
:license: BSD, see LICENSE for more details.
"""
try:
from flaskbb.configs.production import ProductionConfig as Config
except ImportError:
from flaskbb.configs.default import DefaultConfig as Config
from flaskbb.app import create_app
from flaskbb.extensions import celery
app = create_app(Config)