Files
notifications-api/aws_run_celery.py

12 lines
345 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-12-08 12:12:45 +00:00
# On AWS get secrets and export to env, skip this on Cloud Foundry
if os.getenv('VCAP_SERVICES') is None:
os.environ.update(getAllSecrets(region="eu-west-1"))
2016-02-17 11:36:14 +00:00
application = create_app("delivery")
2016-02-17 11:36:14 +00:00
application.app_context().push()