Browse Source

Try to use the production config for celery

Fall back to using the default config
sh4nks 8 years ago
parent
commit
71c5559436
1 changed files with 4 additions and 1 deletions
  1. 4 1
      celery_worker.py

+ 4 - 1
celery_worker.py

@@ -11,7 +11,10 @@
     :copyright: (c) 2016 by the FlaskBB Team.
     :copyright: (c) 2016 by the FlaskBB Team.
     :license: BSD, see LICENSE for more details.
     :license: BSD, see LICENSE for more details.
 """
 """
-from flaskbb.configs.development import DevelopmentConfig as Config
+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.app import create_app
 from flaskbb.extensions import celery
 from flaskbb.extensions import celery