Files
notifications-api/aws_run_celery.py
2016-07-29 10:15:33 +01:00

11 lines
264 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()
application.app_context().push()