From 5d70b0edb0bd04068c8696290242c3079e49c149 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Tue, 25 Jul 2017 14:45:31 +0100 Subject: [PATCH] remove credstash --- requirements.txt | 1 - wsgi.py | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/requirements.txt b/requirements.txt index 5c9c20be4..efcf9910a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,6 @@ Flask-Script==2.0.5 Flask-WTF==0.14.2 Flask-Login==0.4.0 -credstash==1.13.2 boto3==1.4.4 py-gfm==0.1.3 blinker==1.4 diff --git a/wsgi.py b/wsgi.py index 96c25319e..35092e5f3 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,11 +1,6 @@ -from credstash import getAllSecrets from whitenoise import WhiteNoise import os -# 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")) - from app import create_app # noqa PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) @@ -15,4 +10,4 @@ STATIC_URL = 'static/' application = WhiteNoise(create_app(), STATIC_ROOT, STATIC_URL) if __name__ == "__main__": - application.run() + application.run()