Files
notifications-api/aws_run_celery.py

11 lines
264 B
Python
Raw Normal View History

2016-02-17 11:36:14 +00:00
#!/usr/bin/env python
from app import notify_celery, create_app
from credstash import getAllSecrets
import os
2016-02-17 11:36:14 +00:00
# on aws get secrets and export to env
os.environ.update(getAllSecrets(region="eu-west-1"))
2016-02-17 11:36:14 +00:00
application = create_app()
application.app_context().push()