Setup celery config

This commit is contained in:
Martyn Inglis
2016-02-17 10:22:25 +00:00
parent 85a8e6d2b4
commit e0e47b40fc
5 changed files with 12 additions and 8 deletions

View File

@@ -1,6 +1,4 @@
#!/usr/bin/env python
import os
from app import notify_celery, create_app
application = create_app(os.getenv('NOTIFY_API_ENVIRONMENT') or 'development')
application = create_app()
application.app_context().push()