From cf9fc7efbc776c77debb99e8bf1878c60bab0b44 Mon Sep 17 00:00:00 2001 From: dandds Date: Wed, 8 Aug 2018 09:41:42 -0400 Subject: [PATCH] use "prod" for production environment --- atst/app.py | 2 +- script/sync-crls | 2 +- script/sync-dod-certs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/atst/app.py b/atst/app.py index 4b7a0806..c86ab9bf 100644 --- a/atst/app.py +++ b/atst/app.py @@ -48,7 +48,7 @@ def make_app(config): app.register_blueprint(bp) app.register_blueprint(workspace_routes) app.register_blueprint(requests_bp) - if ENV != "production": + if ENV != "prod": app.register_blueprint(dev_routes) apply_authentication(app) diff --git a/script/sync-crls b/script/sync-crls index 93ec6772..3c02ac93 100755 --- a/script/sync-crls +++ b/script/sync-crls @@ -10,7 +10,7 @@ mkdir -p crl rsync -rq crl-tmp/. crl/. rm -rf crl-tmp -if [[ $FLASK_ENV != "production" ]]; then +if [[ $FLASK_ENV != "prod" ]]; then # place our test CRL there cp ssl/client-certs/client-ca.der.crl crl/ fi diff --git a/script/sync-dod-certs b/script/sync-dod-certs index 043629c1..9d7263d8 100755 --- a/script/sync-dod-certs +++ b/script/sync-dod-certs @@ -9,7 +9,7 @@ echo "Resetting CA bundle..." rm ssl/server-certs/ca-chain.pem &> /dev/null || true touch $CA_CHAIN -if [[ $FLASK_ENV != "production" ]]; then +if [[ $FLASK_ENV != "prod" ]]; then # only for testing and development echo "Copy in testing client CA..." cat ssl/client-certs/client-ca.crt >> $CA_CHAIN