Files
notifications-api/aws_run_celery.py
Martyn Inglis 989fbb094d Missing the name on the aws start celery command
- means that logs are branded as application:api not delivery.
2016-08-17 13:18:33 +01:00

11 lines
274 B
Python

#!/usr/bin/env python
from app import notify_celery, create_app
from credstash import getAllSecrets
import os
# on aws get secrets and export to env
os.environ.update(getAllSecrets(region="eu-west-1"))
application = create_app("delivery")
application.app_context().push()