<reponame>Arjun-sna/flask-forum-api-service<filename>celery_worker.py
#!/usr/bin/env python
"""
    app.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 FlaskForum Team.
    :license: BSD, see LICENSE for more details.
"""
import os
from app.server import create_app
from app.extensions import celery  # noqa

_basepath = os.path.dirname(os.path.abspath(__file__))
app = create_app(config=os.path.join(_basepath, 'app.cfg'))

#!/usr/bin/env python
"""
    app.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 FlaskForum Team.
    :license: BSD, see LICENSE for more details.
"""
import os
from app.server import create_app
from app.extensions import celery  # noqa

_basepath = os.path.dirname(os.path.abspath(__file__))
app = create_app(config=os.path.join(_basepath, 'app.cfg'))
#!/usr/bin/env python app.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 FlaskForum Team.     :license: BSD, see LICENSE for more details. # noqa